j0h*_*j0h 19 bash scripts environment-variables
in 的环境变量$PWD具有当前工作目录。是否有包含上一个目录的变量?如果没有,如何创建一个?
我认为这可能很有用。
wal*_*tor 32
就在这里。man bash将带你到
OLDPWD The previous working directory as set by the cd command.
Run Code Online (Sandbox Code Playgroud)