码迷,mamicode.com
首页 > 系统相关 > 详细

Linux基础

时间:2019-12-12 23:51:56      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:--   root   表示   命令提示符   提示   str   ps1   基础   style   

命令提示符:prompt

[root@localhost ~]#   --#表示是root账号,权限比较大

[root@localhost ~]$   --$表示是一般用户,权限相对较小

显示提示符格式:

[root@localhost ~]#echo $PS1 

修改提示符颜色格式:

PS1="\[\e[1;5;41;33m\][\u@\h \W]\\$\[\e[0m\]"

Linux基础

标签:--   root   表示   命令提示符   提示   str   ps1   基础   style   

原文地址:https://www.cnblogs.com/henn/p/12032318.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!