[Linux] shell中获取当前绝对路径

DIR=$(cd `dirname $0` ; pwd)

原文地址:https://www.cnblogs.com/lialong1st/p/12098759.html