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