1、用vi打开这个文件
2、:set ff?
3、如果fileformat=dos,说明该文件在windows下编辑过,被转换成windows下的dos文本格式
4、:set ff=unix
5、:wq保存退出