bash 脚本获取路径

echo $(pwd) echo $(dirname $0) echo $(dirname $(readlink -f "$0"))