(1)在根目录下新建文件.bash_profile (2).bash_profile中的内容为: export PS1='[\u@\h: \w\a\]$' (3)source .bash_profile