龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

解決“/bin/bash^M: bad interpreter: No such file or directory”

2016.01.16 | 1755閱讀 | 0條評論 | linux

方法一:

 [root@localhost bin]# dos2unix myshell.sh
dos2unix: converting file myshell.sh to UNIX format ...


 方法二:

vim mysell.sh

:get fileformat               --->可以看到本文件的格式

:set fileformat=unix     --->就可以將doc轉(zhuǎn)化為unix格式了


問題解決!


贊 (

發(fā)表評論