linux系统显示全路径的配置 1. 进入到etc目录,修改profile文件 cd /etc vi profile 2. 在最后一行加上:export PS1='[u@h $PWD]$' 3. 保存后可以使用source profile即时生效