网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  CentOS执行shell脚本出现$' ':command not found

CentOS执行shell脚本出现$' ':command not found

分类: IT文章 • 2022-10-13 10:01:36
主要原因:windows下编辑的脚本与linux编辑的脚本,在回车换行的符号有所不同造成的
解决方案:
Centos下有个命令dos2unix
你只要输入dos2unix *.sh就可以完成转换工作了
如果命令不存在的话就使用下命令安装
yum install dos2unix -y

相关推荐

  • centos7 安装mysql--python模块出现EnvironmentError: mysql_config not found和error: command 'gcc' failed with exit status 1
  • CRLF line terminators招致shell脚本报错:command not found
  • Centos7 Minni 安装 执行ifconfig命令出现 -bash ifconfig command not found 的解决方法
  • shell脚本执行错误 $' ':command not found
  • Centos7 GCC升级至10.2.0 出现g++:command not found
  • Shell脚本中"command not found"报错处理
  • shell脚本执行错误 $' ':command not found
  • linux下执行sh脚本,提示Command not found解决办法
  • 执行ls、ll、vim、jps、reboot 等命令时出现 command not found
  • Linux centos开机执行JAR Shell脚本
  • dfs——n皇后问题
  • python画图中colorbar设置刻度和标签字体大小
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号