Issue:
1. VM Host的命令提示符: bash-3.2@host$
期望是: username@host
期望是: username@host
点击(此处)折叠或打开
- bash-3.2$ echo $PS1
- \s-\v\$
- bash-3.2$ export PS1="\u@\h:\w\$"
1. \u : username
2. \h : hostname
3. \w : working dir path
add those change to the system profile file
1. make sure you are a root user
2. edit /etc/profile file. find the segment related "PS1", add:
export PS1="\u@\h:\w\$"
export PS1="\u@\h:\w\$"
Reference:
相关热门文章
给主人留下些什么吧!~~
评论热议