bash-4.2$: change the command prompt to display username who has logged in
The /etc/skel directory was empty. Created .bash_profile, .bashrc, .bash_logout files. /etc/profile exists.
However much I try, unable to change the display of command prompt, to display the username I would be glad if some body would clarify, how to make the terminal(bash) command prompt display the username of the user that has logged in, every time, automatically Think I am missing something elementary, but I feel I am going round and round in circles, with .bashrc, .bash_profile, /etc/profile files This will be a lesson for me |
In the below link
http://unix.stackexchange.com/questi...t-show-anymore It was mentioned as below Quote:
Quote:
Quote:
|
Quote:
and please mark the thread solved (Thread Tools at the top). |
You are aware that you only need to replace a single line of code in your bashrc file;
Code:
PS1="\u@\h: " |
All times are GMT -5. The time now is 07:02 AM. |