The Linux OS is CentOS 5.2. Now, when logging in the OS using "root", the prompt is "-bash-3.2# ". How can I set back "[root@unidata ~]# "? Thank you!
Printable View
The Linux OS is CentOS 5.2. Now, when logging in the OS using "root", the prompt is "-bash-3.2# ". How can I set back "[root@unidata ~]# "? Thank you!
Find and comment out any existing lines for PS1.Code:su -
nano /root/.bash_profile
Add this
Tip: Prompt magicCode:export PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] '