登陆信息显示数据 : /etc/issue and /etc/motd 登陆终端机的时候,会有几行提示的字符串,这些设置在/etc/issue里面可以修改,提示内容在/etc/motd中可以修改.
/etc/issue
/etc/motd
1 切换到root用户 2 执行 vim ~/.bashrc 3 添加语句 PS1='[e[35;40m][u@ W]$: [e[m]' 4 退出VIM 执行 source ~/.bashrc
vim ~/.bashrc
PS1='[e[35;40m][u@ W]$: [e[m]'
source ~/.bashrc