shell 獲得當前目錄路徑shell
cd "$(dirname $0)" project=$(pwd | cut -d / -f 4) echo 'project: '$project cd /home/loginuser/$project/app