让命令提示符是彩色的:
/etc/profile尾部添加
export PS1='\[\e[30;1m\][\u@\h \W]\$ \[\e[0m\]' -- 黑色提示符
export PS1='\[\e[31;1m\][\u@\h \W]\$ \[\e[0m\]' -- 红色提示符
export PS1='\[\e[32;1m\][\u@\h \W]\$ \[\e[0m\]' -- 绿色提示符
export PS1='\[\e[33;1m\][\u@\h \W]\$ \[\e[0m\]' -- 黄色提示符
export PS1='\[\e[34;1m\][\u@\h \W]\$ \[\e[0m\]' -- 蓝色提示符
export PS1='\[\e[35;1m\][\u@\h \W]\$ \[\e[0m\]' -- 粉色
export PS1='\[\e[36;1m\][\u@\h \W]\$ \[\e[0m\]' -- 浅蓝
export PS1='\[\e[37;1m\][\u@\h \W]\$ \[\e[0m\]' --