macos linux 命令行显示当前全路径方法

修改.bash_profile文件

export PS1="[\u@\h \`pwd\`]$"

 

转载于:https://www.cnblogs.com/klj123wan/p/5580112.html