shell腳本中獲取當前所在目錄地址

shell腳本中獲取當前所在目錄以下shell

#!/bin/bash

work_path=$(dirname $0)
cd ${work_path} 
work_path=$(pwd) 
cd ${work_path}/src
相關文章
相關標籤/搜索