liunx当前目录父级地址

  • script.sh
root_dir=$(cd $(dirname $0); pwd)
cd $(dirname "$root_dir")
posted @ 2023-06-05 15:39  hziwei  阅读(2)  评论(0编辑  收藏  举报