Linux下命令行显示当前全路径方法

来源:互联网 发布:知乎er是什么意思 编辑:程序博客网 时间:2024/06/04 19:11

/etc/profile 和 ~/.bashrc 或者直接在用户的.bash_profile中添加

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

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

0 0
原创粉丝点击