📜  bash 将当前路径保存到变量 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:28.956000             🧑  作者: Mango

代码示例1
# Saves the current path to the variable "your_variable":
your_variable=$(pwd)

# Go to the path inside the variable:
cd $your_variable