vote up 8 vote down star
7

I would like to have some of the most frequent commands which I use in Linux environment in my windows box , I know there is program called Cygwin. But I don't want to use such a heavy one . All I want is a simple ported unix commands for windows.

Is there any Utilities like that ?

PS: I've created my own 'clear' command through clear.bat with 'cls' in it and I can't do it for all commands :)

flag

7 Answers

vote up 11 vote down check

There's a very similar question on here called "Is Cygwin the best UNIX environment for windows?". There they list a few alternatives:

Out of those, perhaps UnixUtils might serve you best.

link|flag
1  
Superuser doesn't list that when I posted this! Anyhow UnxUtils serves it :) – UK Sep 11 at 13:52
Sweet. I think that I'll start using that too. – Pajarito Sep 11 at 14:12
vote up 5 vote down

MSYS - http://www.mingw.org/wiki/msys

Quite usable, and as long as you have the "bin" directory of MSYS in %PATH%, you can use many of the unix commands from within cmd.exe.

You can even quickly switch to bash from within cmd.exe when you need to.

link|flag
Cygwin allows you to use UNIX commands from within cmd.exe when you have the "bin" directory in PATH – jweede Sep 11 at 14:09
Thanks jweede. I'll update the answer. – lsc Sep 11 at 14:26
MSYS works really well for porting Unix software into Windows. Many times a ./configure and a make is all you need to build it Windows. You also won't need that crazy Cygwin .dll to distribute with the .exe's you build. I highly recommend MSYS. – User1 Oct 27 at 20:41
vote up 4 vote down

UnixUtils

link|flag
vote up 3 vote down

A few people have suggested UnixUtils, but it doesn't seem to have been updated in several years.

GnuWin32 seems to be under more active development. Its auto-updater, GetGnuWin32, is relatively clunky, but you should be able to deal with it if you're comfortable enough with the CLI to want Linux command-line tools in the first place.

link|flag
vote up 1 vote down

Actually, if you install the windows version of git it comes with BASH, grep, and a bunch of other basic unix utils. It has to since git is built on those command-line tools. Easiest way to get a basic bash shell that I know of.

link|flag
2  
Actually, it comes with a subset of MSYS from MinGW. – grawity Sep 11 at 15:12
vote up 1 vote down

An excellent option is UWIN from David Korn at AT&T. It is free and it is regularly updated.

link|flag
vote up 0 vote down

I have use both Cygwin and various iterations of Inerix/SFU/SUA as well as CMD + unxutils and putty, etc. It always feels like fighting the system.

I have really been won over by powershell (despite the name). I now just use powershell with some unixy aliases, a handful of scripts to emulate unixy behaviors and a few native windows ports like vim, infozip, ncftp, curl, wget, etc.

It kind of depends on what you are trying to do. If you want windows to actually be unix then nothing will feel quite right and it will be various flavors of frustrating. If you want to port software then there are lots of options with various pros and cons. If what you want is a powerful text-mode shell and scriping environment where you have a hope of replicating your automations onto servers or your buddies machines then take a hard look at powershell.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.