讓命令提示符是彩色的:
/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\]' --