1. 修改PS环境变量
[[email protected] ~]# vi /etc/bashrc [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\[email protected]\h \W]\\$ " 将PS1="[\[email protected]\h \W]\\$ "修改成PS1="[\[email protected]\h \w]\\$ "
2. 重新打开一个窗口
[[email protected] ~]# cd /etc/salt/ [[email protected] /etc/salt]# 再用户状态中现在绝对路径(当前的工作路径)
原文地址:https://www.cnblogs.com/supery007/p/8595505.html
时间: 2024-10-17 03:30:30