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

来源:9-2 脚本执行方式

咖啡加点Dr盐

2017-02-23 21:36

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

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

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


写回答 关注

2回答

  • 人笨就要多读书
    2017-05-20 09:49:57

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

  • 慕粉1041011110
    2017-02-23 22:38:59

    ./hello.sh

Linux达人养成计划 I

Linux入门视频教程,以通俗易懂的语言带你感受linux之美

398671 学习 · 3791 问题

查看课程

相似问题