On my linux server I signed in as the root user to access some files: su root... After checking the files I went to sign back in as my main user su username. In my terminal window it now says server ~: instead of username@server ~: to the left of the command line. Is there any way I can get this back to normal?
|
feedback
|
migrated from stackoverflow.com Aug 6 '09 at 4:26
This question came from our site for professional and enthusiast programmers.
|
Do a few | |||||||
feedback
|
|
You just need to change the prompt. You can use the following command: export PS1="\u@\h \w: " I personally prefer the following as my prompt, but that's just me: export PS1="[\u@\h \w]\$ " You can prevent your prompt from changing by adding the statement to the relevant bashrc files. See also Bash Shell PS1: 10 Examples to Make Your Linux Prompt like Angelina Jolie for more info about PS1. | |||||||||||||
feedback
|
|
If you have | |||||
feedback
|
|
Your prompt appears to be normally set by one of your shell startup files that is not being run when you
The The
I always use | |||||
feedback
|
|
if this is a bash shell, try:
if that doesnt work run | |||
|
feedback
|
|
will start a new login session | |||
|
feedback
|