Root Prompt Changed
Hi All,
I am not sure exactly what happned but the root prompt in terminal session has been changed from [root@localhost]# to bash-3.1#. I changed the Shell from bash to sh (I read on the forum that it is not recommended to have the root shell set on bash, not quite sure what it means - very new in linux). Now the prompt of course is saying sh-3.1# I would need to ask what could have happened and do I need to change it and how can I change it? Thanks, |
Which forum did you read that on?
The only thing you shouldn't be doing is to be logged in and work as root - which shell you're using won't make much difference in Linux, since sh is just a symlink to bash on pretty much all distros. Cheers, Tink |
The only people that I know who don't recommend bash as roots default shell are the bsd guys. In Linux sh is just a symlink to bash, so explicitly choosing sh does not really achieve much.
|
I just wanted to repeat what the TWO moderators said: "sh is a symlink to bash". I think you can get your original prompt back by typing:
bash |
Quote:
is a statically linked executable, and not just a symlink to a different shell. The advantage is that even if /lib or /usr/lib were on separate file-systems and their mounting failed for some reason you'd still have a shell :} (or something like that - it's been a while that I was on my course, and never had any issues that would warrant a closer examination since). Cheers, Tink |
It makes a difference in Linux as well. From O'Reilly's Learning the bash shell:
Quote:
|
Quote:
|
All times are GMT -5. The time now is 07:23 PM. |