bash hello.sh文件出现hello.sh: 行 4: $'\r': 未找到命令 hello.sh: 行 8: $'\r': 未找到命令
摘要:
因为你的脚本文件使用了 Windows 格式的换行符(CRLF),而 Linux 系统需要 Unix 格式的换行符(LF)。 解决方法: vim hello.sh 在 vim 中输入 :set fileformat=unix :wq 阅读全文
posted @ 2025-10-23 16:33 xszf 阅读(8) 评论(0) 推荐(0)
浙公网安备 33010602011771号