#linux shell中不显示路径了,显示为-bash-4.1#总感受要出事情。linux
#修改步骤以下:shell
vim ~/.bash_profile
(不用管.bash_profile这个文件有几个,本身新建一个也是能够的)vim
##在【最后】加上 export PS1='[\u@\h \W]$'bash
##而后执行 source ~/.bash_profilecode
#这样shell就能够显示路径了。file