-bash-4.1$原因及解决方法
1、有时候在切换用户时会报这样的错 -bash-4.1$ (意思是用户的环境变量路径不正确而导致的)
解决方法一: vim /home/oracle/.bash_profile 在文件末尾增加:export PS1='[\u@\h \w]\$ '(最好用单引号) 执行文件使其生效:source /home/oracle/.bash_profile 解决方法二 :-bash-4.1$模式下 :vi ~/.bash_profile
在文件末尾增加:export PS1='[\u@\h \w]\$ '
执行文件使其生效:source ~/.bash_profile
|