命令提示符设置:
export PS1=' [e[37;1m[][e[31;1m]u[e[39;1m]@[e[33;1m]H [e[34;1m]w[e[37;1m]] [e[32;1m]$ [e[0m]'
将以上内容添加到/etc/bashrc中,即可将命令提示符设为绿色,命令行为淡白色。
登录欢迎图案设置:
安装figlet
figlet属于epel源,所以要先安装epel源,如果安装后提示:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
编辑vim /etc/yum.repos.d/epel.repo文件,将baseurl的注释取消, mirrorlist注释掉即可。
yum -y install figlet
figlet -f slant.flf nginx
输出内容如下:
_
____ ____ _(_)___ _ __
/ __ / __ `/ / __ | |/_/
/ / / / /_/ / / / / /> <
/_/ /_/\__, /_/_/ /_/_/|_|
/____/
编辑/etc/motd,将以上输出的内容复制到该文件中即可。