I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow these instructions 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?
Best Answer
Don't forget it is a hidden file inside your home directory (you would not be the first to do a
ls -l
and thinking it is not there).Do a:
There should be a
.bashrc
on the first page. If not just create it with:and add in the lines you need to add into it.
Permissions of my
.bashrc
are:(
chmod 644 .bashrc
to make itrw r r
).