首页 > 其他 > 详细

How to solve "/bin/sh^M:bad interpreter: No such file or directory"

时间:2015-06-01 20:23:35      阅读:297      评论:0      收藏:0      [点我收藏+]

1. The issue is because windows and linux has different file system.
2. Use vim to open the file
3. Type :set ff?, you will see the text "fileformat=dos" or "fileformat=unix"
4. if you find the fileformat is dos, then you got the reason of "/bin/sh^M:bad interpreter: No such file or directory"
5. How to solve? It‘s very easy, just need to type :set ff=unix
6. Execute the shell again, everything will be ok.

 

How to solve "/bin/sh^M:bad interpreter: No such file or directory"

原文:http://www.cnblogs.com/KarenWang/p/4544652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!