For some reason I logged into my CentOS6 server and at the beginning of every line it normally shows
[root@hostname]#
Now it shows
-bash-4.1#
What does this mean? And how to I get it back to normal??? I'm very new to CentOS...
|
|
|||||
|
|
It means that in one place your command prompt was changed by the contents of .profile (or the system profile)....in the second case, your prompt was not changed. BTW, what is "normal". In my opinion, the default of the application (the second entry) is normal. As in other things "normal" means different things to different people. In UNIXland there are so many ways of doing things, a tag like this really has no meaning. I'd strong suggest you closely study the man page or look for a good book on bash. |
|||||||||
|
|
Per your comment, it sounds like you've done a To exit the |
|||
|
|
|
Run this command in your terminal:
If you want to show this prompt show after you reboot, you can try this (with su):
more information:
|
||||
|
|
/etc/skel. – quanta Dec 24 '12 at 3:27echo $PS1show? Did yousuto get root instead ofsu -? – jscott Dec 24 '12 at 3:40ls -a /root/ | egrep '^\.'? – quanta Dec 24 '12 at 3:53