shell脚本进入当前目录执行,返回脚本位置

#!/bin/bash
cd `dirname $0`
echo `pwd`

 

posted @ 2021-07-27 11:27  罗论明  阅读(338)  评论(0编辑  收藏  举报