linux shell显示-bash-4.1#的解决方法

linux shell显示-bash-4.1#的解决方法

终端执行:
vim ~/.bash_profile
文件中写入:
export PS1='[\u@\h \W]\$’
终端执行:
source ~/.bash_profile
这样shell就可以显示路径了。

原创文章 29 获赞 62 访问量 10万+

猜你喜欢

转载自blog.csdn.net/mahoon411/article/details/104983451
今日推荐