How to run .sh files in Windows?

北城以北 提交于 2019-12-20 02:57:17

问题


I download some repositories of DojoToolkit in GitHub that have .sh files, I know .sh extension are typically shell scripts written in Unix, but exist a way to run this in Windows?


回答1:


cygwin is probably the easiest way.

http://www.cygwin.com/

Alternatively if you're already using git-bash for github etc you can use it to run .sh scripts too.




回答2:


Porting unix stuff to windows is sometime possible (mostly thanks to cygwin, as pointed out by other answers) but except for simple stuff, you'll quickly enter into a compatibility hell, never knowing what goes wrong.

I recommend setting up a virtual machine running a simple ubuntu server.

That what I use daily. VMware server is free, ubuntu installs perfectly on it. Shell via ssh and file share via a samba server on the linux VM. File editor on windows.

Works perfectly, no more compatibility problems.



来源:https://stackoverflow.com/questions/7936861/how-to-run-sh-files-in-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!