2024年2月2日 星期五

##问题:
/bin/sh^M: bad interpreter: No such file or directory

解决

文档格式问题,文档是window格式的,在Linux上运行,要先转成unix的,可以用notepad++的编辑功能,转换文档格式.

参考文章

Linux - /bin/sh^M: bad interpreter: No such file or directory_linux中: bad interpreter: no such file or directory-CSDN博客
https://blog.csdn.net/lewky_liu/article/details/99495945

command line - Not able to execute a .sh file: /bin/bash^M: bad interpreter - Ask Ubuntu
https://askubuntu.com/questions/304999/not-able-to-execute-a-sh-file-bin-bashm-bad-interpreter

修复:Linux 中的“Bad Interpreter: No Such File or Directory”错误
https://cn.linux-console.net/?p=8014

Linux - /bin/sh^M: bad interpreter: No such file or directory - 雨临Lewis - 博客园
https://www.cnblogs.com/yulinlewis/p/11349440.html

Linux - /bin/sh^M: bad interpreter: No such file or directory-腾讯云开发者社区-腾讯云
https://cloud.tencent.com/developer/article/1932825

newline - Bash script – “/bin/bash^M: bad interpreter: No such file or directory” - Stack Overflow
https://stackoverflow.com/questions/14219092/bash-script-bin-bashm-bad-interpreter-no-such-file-or-directory

Linux问题汇总 - Yulin Lewis’ Blog
https://lewky233.top/posts/linux-issues/

作者:李世民  创建时间:2024-02-02 15:46
最后编辑:李世民  更新时间:2024-02-02 16:01