shell脚本获取脚本所在绝对路径 分类:Linux, Operating System 阅读 (1,107) shell脚本获取脚本所在绝对路径已关闭评论 4月 202020 script_folder=$(cd "$(dirname "$0")"; pwd) echo ${script_folder} 123 script_folder=$(cd "$(dirname "$0")"; pwd) echo ${script_folder}