shell腳本中切換目錄失敗

如下爲腳本內容 [root@localhost script]# cat cd.sh  #!/usr/bin/env bash # cd /opt [root@localhost script]# pwd /script 1、問題:執行腳本後,理應切換到/opt,可是實際並無 [root@localhost script]# sh cd.sh  [root@localhost script]# 
相關文章
相關標籤/搜索