如题,在Linux下执行sh脚本提示:“nohup: failed to run command sh: No such file or directory”,原因是脚本可能是Windows下面编写的,直接在Linux下运行就会有这样的报错。解决办法是使用vim打开,然后执行:set ff=unix,之后保存退出即可。