📌  相关文章
📜  在 shell 脚本中显示工作目录 - Shell-Bash 代码示例

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

代码示例1
#!/bin/bash
echo "Script executed from: ${PWD}"

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"