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

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

时间:2017-01-13 14:00:55      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:style   bin   退出   linu   .sh   set   class   tor   title   

linux更改脚本编码格式:vi *.sh

通过

set ff

查看当前格式

再通过 :set ff=unix 更改

然后保存退出(:wq)

 

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

标签:style   bin   退出   linu   .sh   set   class   tor   title   

原文地址:http://www.cnblogs.com/ciscoo/p/6282369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!