如何在Windows 7命令提示符下运行.sh ?当我试着在里面运行这一行的时候总是会得到这个错误,
app/build/build.sh
错误,
'app' is not recognized...
or,
bash app/build/build.sh
错误,
'bash' is not recognized...
知道我错过了什么吗?
这里是截屏,
如何在Windows 7命令提示符下运行.sh ?当我试着在里面运行这一行的时候总是会得到这个错误,
app/build/build.sh
错误,
'app' is not recognized...
or,
bash app/build/build.sh
错误,
'bash' is not recognized...
知道我错过了什么吗?
这里是截屏,
当前回答
Windows中的新功能-在Windows的ubuntu上运行bash -在Build会议后的Windows 10“Insiders”版本中可用:
https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/
其他回答
你也可以使用cder
Cmder是一个纯粹出于对Windows上缺少良好的控制台模拟器的不满而创建的软件包。它是基于惊人的软件,并与Monokai配色方案和自定义提示布局,从一开始看起来性感
cmder.net
在Windows 10周年更新中,在ubuntu上运行shell命令甚至更容易
我试图为我的x-wrt r7000 netgear路由器设置我的区域,我发现以下对我有用,在windows上使用ubuntu上的bash,你必须启用在windows功能中找到的子系统,并开启开发模式
ssh admin@192.168.1.1 < /mnt/c/ccode-eu.sh
安装GIT。在安装GIT的过程中,通过选择GIT Bash选项将其添加到windows上下文菜单中。安装完成后,右键单击文件夹,选择GIT Bash Here(见附件),然后使用sh命令,例如:
sh test.sh
Windows中的新功能-在Windows的ubuntu上运行bash -在Build会议后的Windows 10“Insiders”版本中可用:
https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/
我使用Windows 10 Bash shell,也就是Linux子系统,也就是Windows 10中的Ubuntu