Home >Operation and Maintenance >Linux Operation and Maintenance >What should I do if Linux does not display the current path by default?
首先进入到etc目录,编辑profile文件
vim profile
然后在最后一行加上:
export PS1='[\u@\h $PWD]\$'
保存之后执行:
source /etc/profile
推荐教程:linux教程
The above is the detailed content of What should I do if Linux does not display the current path by default?. For more information, please follow other related articles on the PHP Chinese website!