解决shell报错-bash命令无法运行问题
参考博客:解决shell报错-bash: ./test.sh: bin/bash: bad interpreter: No such file or directory
查看*.sh文件格式
cat -A 文件 |

使用dos2unix文件转命令
yum install -y dos2unix |
dos2unix *.sh |

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Think Note!
参考博客:解决shell报错-bash: ./test.sh: bin/bash: bad interpreter: No such file or directory
查看*.sh文件格式
cat -A 文件 |

使用dos2unix文件转命令
yum install -y dos2unix |
dos2unix *.sh |
