简体   繁体   中英

Learning UNIX Bash/Shell scripting on a windows enviornment

I was just curious if there are any tools out there that would allow me to practice shell scripting without dual booting my computer to half windows and half UNIX. I've heard of Cygwin but is that truly UNIX ?

Install Cygwin or install a Linux system under a virtual machine with emulators like VirtualBox .

Cygwin is not completely UNIX but it would be enough with not-too-system related scripting. There are differences though compared to a true UNIX system eg process managing wouldn't really work well. /proc too I think doesn't work as expected.

Cygwin可以,但是请记住,如果您想了解UNIX,Cygwin将无助于学习Linux文件系统,这一点很重要。

You could also have a look at How to develop in Linux-Like Shell (bash) on Windows? , maybe there are some helpful answers.

Personally, I think a Linux VM is your best option. Cygwin is a UNIX-like environment on top of Windows, it's not a UNIX emulator.

I generally install git with Windows installer. Not only it comes with bash (look for "git bash" in Start menu), it also comes with git (duh) and ssh .

Obviously that's not "truly unix", for that install Virtualbox and in it FreeBSD or some other *BSD (they are officially "unix", unlike Linux which is "just" unix-like).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM