在root权限下:
打开
vi ~/.bash_profile
然后往文件中添加如下内容 :
export PS1='[\u@\h \W]\$'
使更改生效:
source ~/.bash_profile
在切换用户试试:
su xxxx
谢谢
在root权限下:
打开
vi ~/.bash_profile
然后往文件中添加如下内容 :
export PS1='[\u@\h \W]\$'
使更改生效:
source ~/.bash_profile
在切换用户试试:
su xxxx
谢谢
转载于:https://my.oschina.net/TOW/blog/751871