0
点赞
收藏
分享

微信扫一扫

Linux下命令行变成-bash-4.2出现原因以及解决方法

您好 2022-11-21 阅读 148

出现原因:

基本上是删除了 .bash_profile 这个隐藏文件或者改了这个.bash_profile 中的配置导致的

解决方法:

vi ~/.bash_profile
在最后加上

export PS1='[\u@\h \W]\$'
然后

source ~/.bash_profile
就可以了

举报

相关推荐

0 条评论