I am trying to learn how to tweak my shell in the file but can't seems to find the file in my home directory or in /etc/profile.  Is there any other file I need to search for, or am I expected to create one from scratch?
101171
I can't find .bash_profile in Ubuntu 14.04 in my /home/user directory. I used the ls -a command to see the .bash_profile, but there isn't such a file.
64038
I have a user that has made no modifications to the $PATH in any dot-files: it is exactly the system default setting. From a login shell:  $ ssh example.com user@example.com:~$ cat /tmp/hello.hs #!/bin/bash  echo "$SHELL" echo "$PATH"  user@example.com:~$ /tmp/hello.hs /bin/bash /usr/local/bin:/usr/bin:/bin   Exactly as specified in /etc/profile. This I find rather unexpected:  $ ssh example.com '/tmp/hello.sh' /bin/bash        /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games   Like I said, there's no modification of $PATH in ~/.bashrc, nor in /etc/bash.bashrc. No ~/.ssh/environment either. The ssh(1) declares that the environment variable PATH is     Set to the default PATH, as specified when compiling ssh.   but  from StackOverflow and this  article suggest that I should be able to influence the $PATH for a given command simply by modifying /etc/profile, one of the shell startup files, etc.   What's going on here?
94037
i am building my own distro (which i am almost done) but one thing left is the name of it. since i am not sure what to name it im leaving the "ubuntu" there  i know i will have to change the following files   /etc/lsb-release /etc/issue   to my own name and version and code name. am i missing other files?  (on my site it shows it's an ubuntu version - i read the tm etc... but i want the name of my distro to be there) thanks
65564
Why does Ubuntu create a file ending in ~ for every file I create with a text editor ?   Creating a file with a text editor like GNU Emacs, say myfile, another file called myfile~ is also created. Why is this superfluous file created ? Using cat on it displays nothing.  Thanks,
50320
What can I type at my shell (which happens to be bash) that will list all the commands that are recognized?  Also, does this differ by shell? Or do all shells just have a "directory" of commands they recognize?  Secondly, different question, but how can I override any of those? In other words how can I write my own view command to replace the one existing on my Ubuntu system, which appears to just load vim.
123126
My desktop (not the /home/user/Desktop folder) shows the contents of my /home/user folder. I don't know how I have done it and can I have some help on undoing it? The /home/user/Desktop folder just contains my desktop files which do not appear on my desktop.
70828
I want to do:  echo "something" &gt;&gt; /etc/config_file  But, since only the root user has write permission to this file, I can't do that. But the following also doesn't work.  sudo echo "something" &gt;&gt; /etc/config_file   Is there a way to append to a file in that situation without having to first open it with a sudo'd editor and then appending the new content by hand?
65212
I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow  to edit my bash prompt, but there is no .bashrc in either my user directory (~/.bashrc), or in my home directory, or in the main file system directory.   There is no .bashrc in /etc/ (there is a bash.bashrc, however).   Do I create a .bashrc file in my user or home directory? Is there a better, more recent set of instructions for modifying the bash prompt?
82612
I'm a beginner to Ubuntu. Can anyone tell me how to edit a configuration file?  This is on Ubuntu 18.04 LTS. Thanks in advance.
69495
I'm new to Ubuntu. I'm running Ubuntu 14.04.1 LTS.   My problem is that when I try to access my desktop or any folder at my home directory, it always gives me this error   No such file or directory   even though the folder exists and I can see it with the ls command
76494
I was setting path for anaconda. an answer to a question  has the following solution. I searched for .bash_profile, but I can't seem to find it. How do I setup this file and get it to run on startup?
112491
I tried looking for the .emacs file for my Windows installation for Emacs, but I could not find it. Does it have the same filename under Windows as in Unix?  Do I have to create it myself? If so, under what specific directory does it go?
18751
For instance, if I were to run the command adduser test, is the .bashrc created automatically upon creation of the home directory for the user test? If it's not created upon user creation, under what conditions is it created?  Also, if I add a .bashrc file to the home directory of a user, will it be overwritten by the OS?  Thanks in advance.
72629
Let's say the directory ~/this_dir doesn't exist.  I need to be able to run touch ~/this_dir/new.txt to create new.txt in ~/this_dir.  Is there a simple way to make touch also create the directory?  Or an alternative command which would achieve the same thing?  Thanks
7483
Total Ubuntu/Linux in general noob here.   What is the difference between /home and /Home ? I've noticed I need to use sudo to do anything in /home. /Home (home folder?) has pictures, videos, etc. in it so thats where I want to really create new folders and stuff but I can't seem to get to it using cd.
52855
# ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package.  # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. #umask 022  # if running bash if [ -n "$BASH_VERSION" ]; then     # include .bashrc if it exists     if [ -f "$HOME/.bashrc" ]; then     . "$HOME/.bashrc"     fi fi  # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then     PATH="$HOME/bin:$PATH" fi   Can anyone explain the contents of the ~/.profile file? So when you enter into the ~/.profile file what does all the writing mean?
48425
I just noticed that I have a file called ~ in my ~-directory.  $ ls -la ~ ... -rw-r-----  1 x1 x1  733962240 Mar  1 17:55 ~ ...   Any idea how I can mv or rm it?