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.
Window下Ribbit MQ安装
2.
Linux下Redis安装及集群搭建
3.
shiny搭建网站填坑战略
4.
Mysql8.0.22安装与配置详细教程
5.
Hadoop安装及配置
6.
Python爬虫初学笔记
7.
部署LVS-Keepalived高可用集群
8.
keepalived+mysql高可用集群
9.
jenkins 公钥配置
10.
HA实用详解
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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”
>>更多相关文章<<