1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > shell脚本出现bad interpreter:No such file or directory怎么办?

shell脚本出现bad interpreter:No such file or directory怎么办?

时间:2018-10-05 20:57:23

相关推荐

shell脚本出现bad interpreter:No such file or directory怎么办?

shell脚本出现bad interpreter:No such file or directory怎么办?

自己写的shell脚本出现了bad interpreter:No such file or directory,如果确认脚本没有问题,那有可能是脚本的格式出现了问题,可以进入shell脚本(vim shell脚本),按exit键:set ff进行检查,如果出现fileformat=dos,那就是shell脚本的格式出现了问题。可以使用以下方式进行解决:

vim shell脚本,然后按exit键,然后执行:set fileformat=unix,最后:wq:x保存退出就可以使用了。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。