shell 获得当前目录路径shell
cd "$(dirname $0)" project=$(pwd | cut -d / -f 4) echo 'project: '$project cd /home/loginuser/$project/app