ubuntu系統shell 中source: not found錯誤

錯誤: shell腳本中含有source命令運行時提示 source: not foundshell

    • 測試: 
      運行 ls -l /bin/sh 後顯示/bin/sh -> dash 
      這說明是用dash來進行解析的。bash

    • 解決方案: 
      命令行執行:dpkg-reconfigure dash(須要root權限) 
      在界面中選擇no 
      再運行ls -l /bin/sh 後顯示/bin/sh -> bash測試

相關文章
相關標籤/搜索