原文: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