特牛网址导航

Linux中解决cannot access ‘\r’: No such file or directory_[91mchmod: cannot access '/opt/yueji/scancore/buil-CSDN博客

网友收藏
文章浏览阅读1.7w次,点赞3次,收藏4次。碰到这种情况,是因为脚本文件在windows环境下编辑过后再上传到linux服务器导致换行符格式不对。使用dos2unix命令行即可解决。进入root用户后,使用yum install dos2unix。安装完成后使用命令 dos2unix start.sh 其中start.sh为出问题的脚本文件名,也可以使用*通配符来同时修改多个,或者使用空格隔开文件名的方式。..._[91mchmod: cannot access '/opt/yueji/scancore/build.sh': no such file or di