JavaShuo
栏目
标签
linux下执行shell脚本提示Command not found
时间 2021-07-11
标签
Linux
linux
栏目
Linux
繁體版
原文
原文链接
背景: Shell脚本是在Windows本地notepad++里面编写完成的,然后在linux终端通过rz命令上传上去并直接执行,结果报错: 原因:在网上查资料定位之后发现是因为不同操作系统的编码格式引起的 使用vi命令打开脚本,通过命令 :set ff 查看脚本的编码格式为dos 解决:使用如下命令修改文件格式并保存退出 :set ff=unix 或 :set fileformat=unix :
>>阅读原文<<
相关文章
1.
jenkins执行shell命令,有时会提示“Command not found”
2.
shell脚本中定义的变量提示command not found
3.
MySQL shell脚本执行错误 $'\r':command not found
4.
shell脚本执行错误 $'\r':command not found
5.
Linux下提示 bash: xxx command not found
6.
shell 脚本定义变量,command not found
7.
Shell脚本出现$'\r': command not found
8.
提示:“bash: ifconfig: command not found”
9.
Linux下执行shell脚本,提示 No such file or directory
10.
Linux 安装Anaconda 提示“bunzip2: command not found”
更多相关文章...
•
Swift 下标脚本
-
Swift 教程
•
Eclipse 悬浮提示
-
Eclipse 教程
•
IDEA下SpringBoot工程配置文件没有提示
•
SpringBoot中properties文件不能自动提示解决方法
相关标签/搜索
shell脚本
command
提示
执行
shell脚本语法
shell脚本实例
Linux-shell
linux&shell
shell+linux
linux+shell
Linux
Unix
PHP教程
PHP 7 新特性
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
部署Hadoop(3.3.0)伪分布式集群
2.
从0开始搭建hadoop伪分布式集群(三:Zookeeper)
3.
centos7 vmware 搭建集群
4.
jsp的page指令
5.
Sql Server 2008R2 安装教程
6.
python:模块导入import问题总结
7.
Java控制修饰符,子类与父类,组合重载覆盖等问题
8.
(实测)Discuz修改论坛最后发表的帖子的链接为静态地址
9.
java参数传递时,究竟传递的是什么
10.
Linux---文件查看(4)
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
jenkins执行shell命令,有时会提示“Command not found”
2.
shell脚本中定义的变量提示command not found
3.
MySQL shell脚本执行错误 $'\r':command not found
4.
shell脚本执行错误 $'\r':command not found
5.
Linux下提示 bash: xxx command not found
6.
shell 脚本定义变量,command not found
7.
Shell脚本出现$'\r': command not found
8.
提示:“bash: ifconfig: command not found”
9.
Linux下执行shell脚本,提示 No such file or directory
10.
Linux 安装Anaconda 提示“bunzip2: command not found”
>>更多相关文章<<