linux文本格式转换

问题:在linux环境下面执行SH的可执行文件。

-bash: ./start.sh: /bin/sh^M: bad interpreter: No such file or directory

解决办法:

1.查看该文件  vim start.sh   不是编辑模式直接输入:set ff     查看弹出的界面  fileformat=dos  说明文本格式不对

直接set ff  = unix   就可以了

 

posted on 2018-06-05 16:36  byao  阅读(839)  评论(0编辑  收藏  举报

导航