centos命令提示符设置颜色

1 vim /etc/profile
2 在文件的末尾加上  PS1='\[\e[36;40m\][\u@ \W]\$ \[\e[m\]'
3 source /etc/profile

最终效果如下:

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务