背景
  执行.sh脚本时出现$’\r’: 未找到命令,
原因
  是因为命令直接从windows 复制过来导致的
解决
  运行: yum install dos2unix

linux 执行.sh脚本时出现 $’\r’: 未找到命令

linux 执行.sh脚本时出现 $’\r’: 未找到命令
  dos2unix **.sh 进行转换
  再次执行即可

参考:https://blog.csdn.net/qq_39727001/article/details/102560102

相关文章:

  • 2021-08-11
  • 2021-12-06
  • 2021-12-10
  • 2021-06-24
  • 2021-12-06
  • 2022-01-11
  • 2021-05-13
  • 2021-08-28
猜你喜欢
  • 2021-10-18
  • 2022-01-28
  • 2021-12-18
  • 2022-01-20
  • 2021-11-09
  • 2021-09-17
  • 2021-07-28
相关资源
相似解决方案