Linux中提示No such file or directory解决方法 在linux下,./xxx.sh执行shell脚本时会提示No such file or directory。但shell明明存在,为什么就是会提示这个呢? 解决方法: 用vim打开该sh文件,输入: :set ff //回车,显示fileformat=dos :set ff=unix //重新设置下文件格式 :wq //保存退出 再执行,就不会再提示No such file or directory这个问题了。 有其他交流的想法,可以加我创建的Q群:820080257