Windows环境运行Shell的工具—— cmder
编写的Shell脚本程序一般都是在Linux环境运行,直接在Windows环境中的cmd命令行运行Shell脚本,是会报错的。但是非想在Windows环境运行Shell脚本不是不可能的,需要借助第三方工具cmder,实现你在Windows环境运行的Shell梦想。一、编写一个简单的Shell脚本(demo.sh)#!/bin/bash#author pengw#time 2019-1...
·
编写的Shell脚本程序一般都是在Linux环境运行,直接在Windows环境中的cmd命令行运行Shell脚本,是会报错的。但是非想在Windows环境运行Shell脚本不是不可能的,需要借助第三方工具cmder,实现你在Windows环境运行的Shell梦想。
一、编写一个简单的Shell脚本(demo.sh)
#!/bin/bash
#author pengw
#time 2019-11-06
#github-link https://github.com/Echo-Mr-Pengw/
echo 'https://github.com/Echo-Mr-Pengw/Shell-Source-Installation-MySQL'
二、Windows环境直接运行此Shell脚本(demo.sh)
三、在Linux环境直接运行此Shell脚本(demo.sh)
四、Windows环境安装cmder,运行Shell
(1)下载cmder,并解压。(下载地址:https://github.com/Echo-Mr-Pengw/cmder)
(2)双击Cmder.exe
(3)切换路径到你需要运行的Shell脚本目录,运行Shell脚本
更多推荐
已为社区贡献1条内容
所有评论(0)