码迷,mamicode.com
首页 > Windows程序 > 详细

windows编写sh脚本在linux上不能执行——command not found

时间:2020-04-17 23:37:05      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:没有   dos   lin   window   不能   format   http   unix   linux   

编码没有被识别,
vi *.sh
• 查看文件格式(显示  fileformat=dos)或者命令:set fileformat

技术图片

 

输入命令 :set fileformat

• 修改文件格式(修改后 显示 fileformat=unix)

输入命令 :set fileformat=unix

Esc输入 :wq
 最后重新执行sh文件

 

windows编写sh脚本在linux上不能执行——command not found

标签:没有   dos   lin   window   不能   format   http   unix   linux   

原文地址:https://www.cnblogs.com/shangshen/p/12723131.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!