Shell腳本學習筆記(一)--預備知識

預備知識 shell 檢查Script語法:bash -v test.sh Jackbash 不執行,僅查看代碼:bash -n test.shpost 追蹤執行:bash -x test.shspa 強制變量先聲明後使用:shopt -s -o nounsetblog 以sh test.sh執行時,能夠沒必要事先設定Script的執行權ip ./cd.sh 子shell隨即關閉,又回到父shel
相關文章
相關標籤/搜索