原文:source command not found in sh shell解決辦法

在Ubuntu系統中執行腳本的時候突然出現錯誤 source command not found in sh shell 這個其實在Ubuntu 當中 執行腳本默認的使用的是dash,而非bash 通過命令 我們發現, 腳本中默認使用的sh其實對應的是dash, 而不是bash。 為了解決這個錯誤我們就需要把這個對應關系修改下, 讓sh對應到bash 執行以下命令, 在彈出的框里面選擇No即可把s ...

2016-12-24 22:09 0 4092 推薦指數:

查看詳情

ubuntu shell 提示 source : not found 原因及解決辦法

現象: shell腳本中source aaa.sh時提示 source: not found 原因: ls -l `which sh` 提示/bin/sh -> dash 這說明是用dash來進行解析的。 改回方法: 命令行執行:sudo dpkg-reconfigure ...

Fri Apr 30 01:14:00 CST 2021 0 212
linux下執行sh腳本,提示Command not found解決辦法

1、確保用戶對文件有讀寫及執行權限 oracle@linux-106:~/RMAN/bin> chmod a+x test.sh 2、然后修改文件格式(如果是從winodws搬過來的會顯示dos格式,要把它改成unix格式) (1)使用vi工具 ...

Wed Dec 19 23:48:00 CST 2018 0 4748
linux下執行sh腳本,提示Command not found解決辦法

1、確保用戶對文件有讀寫及執行權限 oracle@linux-106:~/RMAN/bin> chmod a+x test.sh 2、然后修改文件格式(如果是從winodws搬過來的會顯示dos格式,要把它改成unix格式) (1)使用vi工具 ...

Thu Jul 22 23:07:00 CST 2021 0 179
-/bin/sh: ./led: not found解決辦法

環境介紹:   開發板:qq2440   交叉編譯器:arm-linux-gcc 3.4.1   內核版本:2.6.13 一.針對該類問題從兩個方面入手: 1.從權限出發,權限不夠會出現此問 ...

Fri Oct 07 00:20:00 CST 2016 0 3581
source : not found 原因及解決辦法

ubuntu中shell腳本無法使用source的原因及解決方法 現象: shell腳本中source aaa.sh時提示 source: not found 原因: ls -l `which sh` 提示/bin/sh -> dash 這說明是用dash來進行解析 ...

Thu May 28 17:35:00 CST 2020 0 9255
source : not found 原因及解決辦法

解決方案來自網絡: debian中shell腳本無法使用source的原因及解決方法 現象: shell腳本中source aaa.sh時提示 source: not found 原因: ls -l `which sh` 提示/bin/sh -> dash 這說明 ...

Sun May 29 01:22:00 CST 2016 0 2448
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM