码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-06-01 20:25:14      阅读:109      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!