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.
字節跳動21屆秋招運營兩輪面試經驗分享
2.
Java 3 年,25K 多嗎?
3.
mysql安裝部署
4.
web前端開發中父鏈和子鏈方式實現通信
5.
3.1.6 spark體系之分佈式計算-scala編程-scala中trait特性
6.
dataframe2
7.
ThinkFree在線
8.
在線畫圖
9.
devtools熱部署
10.
編譯和鏈接
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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」
>>更多相關文章<<