linux shell脚本提示No such file or directory问题

it2023-05-31  76

1.  shell脚本提示No such file or directory问题

分析原因,可能因为我平台迁移碰到权限问题我们来进行权限转换 

解决方法:

1.1   vi   *.sh(用vim打开该sh文件)

1.2  :set ff=unix 

1.3 :wq

 

2. shell脚本提示找不到命令

解决方法:

1.右键*.sh文件 在“权限”中勾选“允许以程序执行文件”

最新回复(0)