Linux执行.sh文件,提示No such file or directory的问题的解决方法
原因:在windows中写好shell脚本测试正常,但是上传到 Linux 上以脚本方式运行命令时提示No such file or directory错误,那么一般是文件格式是dos格式的缘故,改成unix 格式即可。


用vim打开该sh文件,输入:
:set ff
回车,显示fileformat=dos,重新设置下文件格式:
:set ff=unix
保存退出:
:wq
再执行

参考文档:https://blog.csdn.net/fireblue1990/article/details/74275843
https://blog.laoda.de/archives/aria2-rclone-filebrowser