A question about different shells
Hello,
Why is it that when I SSH to one server, I get the shell prompt in the following format: [root@server1 ~]# And on another, I get it like this: bash2.0 $ Both are Bash shells, so what is the difference? Many thanks! |
Basically, different operating systems set different prompts. The first one you posted is a Red Hat/Fedora like prompt. The other one is a generic bash prompt. The environment variable PS1 controls the way a prompt is displayed.
|
Short answer: Because they are configured differently....
What you need is to change the PS1 variable. Here's one article on how to do it: http://www.cyberciti.biz/tips/howto-...up-prompt.html I thought there was a man page....??? |
No difference - it's just that bash environment is set up differently on different machines (see ~/.bashrc , /etc/profile) where variables can be set any way you want it, including prompt, colours etc.
('#' normally means you're logged in as root, and '$' - as ordinary user) |
Quote:
cheers, |
Quote:
|
Quote:
First thing I do on any machine I have to adminster via ssh - disable root login, change port, disable password authentication. |
Quote:
I agree, off-topic, tho'. cheers, |
All times are GMT -5. The time now is 01:57 AM. |