linux下shell显示-bash-4.1$ 不显示路径解决方法

linux shell中不显示路径了,用起来很不方便.

如何改为显示路径的shell

步骤如下:

vi ~/.bash_profile

(不用管.bash_profile这个文件有几个,自己新建一个也是可以的)

在最后加上:

export PS1=’[\u@\h \W]\$’

然后执行

source ~/.bash_profile

这样shell就可以显示路径了

 

End.

posted @ 2013-09-12 07:45  lianche  阅读(395)  评论(0编辑  收藏  举报