您的位置: 首页 > 文章 > bash:$'\r': command not found 报错的解决 bash:$'\r': command not found 报错的解决 分类: 文章 • 2022-05-17 22:22:34 先安装 yum -y install dos2unix 进行一下转换 dos2unix aaa.sh (脚本名) source aaa.sh 搞定