为了账号安全,请及时绑定邮箱和手机立即绑定

执行脚本失败 提示 -bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory

[root@db ~]# chmod 755 hello.sh 

[root@db ~]# ./hello.sh 

-bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory


正在回答

2 回答

你打开你的程序,你要确定第一行写了    #!/bin/bash      我之前是因为漏掉了bin前面的/ 就提示了和你同样的错误。

0 回复 有任何疑惑可以回复我~

./hello.sh

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

执行脚本失败 提示 -bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号