Linux执行.sh文件,提示No such file or directory问题
原因:
文件从windows拷贝到linux下
解决办法:
vim打开sh文件
命令模式下输入:set ff
回车,显示fileformat=dos,重新设置下文件格式
:set ff=unix
:wq
原因:
文件从windows拷贝到linux下
解决办法:
vim打开sh文件
命令模式下输入:set ff
回车,显示fileformat=dos,重新设置下文件格式
:set ff=unix
:wq
本文标题:Linux执行.sh文件,提示No such file or d
本文链接:https://www.haomeiwen.com/subject/bpmlnltx.html
网友评论