macos linux 命令行显示当前全路径方法修改.bash_profile文件export PS1="[\u@\h \`pwd\`]$" 转载于:https://www.cnblogs.com/klj123wan/p/5580112.html