Issue:
1. VM Host的命令提示符: bash-3.2@host$
期望是: username@host
- bash-3.2$ echo $PS1
- \s-\v\$
- bash-3.2$ export PS1="\u@\h:\w\$"
Comment:
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\$"
Reference:
阅读(578) | 评论(0) | 转发(0) |