Centos bash-4.2$ in command line

Input the following possible commands:

vi ~/.bash_profile 
export PS1='[\u@\h \w]'
source ~/.bash_profile

or source ~/.bashrc. This method from ‘_kairui’ is also useful.

cp /etc/skel/.bashrc /root/

cp /etc/skel/.bash_profile /root/

Reference:

http://blog.csdn.net/testcs_dn/article/details/70482468

http://blog.csdn.net/liulihui1988/article/details/52796395

Leave a Reply

Your email address will not be published. Required fields are marked *