linux执行shell报错:...^M: bad interpreter: 没有那个文件或目录

执行shell的脚本时,报错


这是文件格式的问题


vi partition_test.sh---->:set ff


显示


这样就表示是文件格式的问题

修改如下


然后保存退出即可

猜你喜欢

转载自blog.csdn.net/ziptop/article/details/49869671