I'd like to download the basic stuff like 'rm -rf'.

I used to just download cygwin, but are binutils or some other alternative better (if all I need are the truely basic stuff ... I'm trying to think of anything I'm missing beyond 'rm -rf' and rather failling at it a.t.m)

link|improve this question

64% accept rate
2  
Short note: rd /s /q is the Windows variant of rm -rf. – Joey Aug 18 '09 at 21:28
That's valuable in its on right, thanks. – ripper234 Aug 19 '09 at 11:23
feedback

5 Answers

up vote 11 down vote accepted

I'm a big fan of GnuWin32.

You can download just the packages you need; each stands alone so you don't need to install any core Unix emulation layer like with Cygwin.

link|improve this answer
1  
I think that GnuWin32 is the best answer for the question asked. I would also suggest looking at Powershell if you anticipate working at the command line a lot in windows. – EBGreen Aug 17 '09 at 14:09
Well, I'll go with the majority vote here, even though when I left work it was still downloading so I don't really know. – ripper234 Aug 17 '09 at 18:15
I use both. There are some good *nix commands or apps that aren't GNU. Many neither cygwin nor of course gnuwin32 has(I notice neither has "rename".. But, others like Apache.. is not GNU, so hence I suppose maybe why gnuwin32 doesn't have it. But cygwin has it. – barlop Sep 5 '10 at 22:56
feedback

Is Cygwin the best unix environment for Windows? I am leaning towards that.

link|improve this answer
1  
I would say that cygwin is the right answer if a complete unix/bash environment is required. I'm not sure that the OP requires that though. – EBGreen Aug 17 '09 at 14:40
@EBGreen, I feel that collecting the required binaries with the cygwin1.dll should be portable enough too. – nik Aug 17 '09 at 16:00
feedback

I much prefer GnuWin32, especially if you only want a small subset of the linux toolset. The installation process is much easier than cygwin, especially if you don't care about a BASH shell.

link|improve this answer
feedback

Stupid Idea I just had: Build a busybox binary. It should have just the bare essentials.

You could, perhaps, easily build a standalone, portable, minimalistic cygwin distro (with just the registry entries and the .dll files).

link|improve this answer
feedback

UnxUtils is another alternative to consider, though I prefer GnuWin32 myself.

link|improve this answer
unxutils the programs are old versions.. and probably all within gnuwin32 anyway..the website unxutils.sourceforge.net says last updated in 2003.And I think all the unxutils are gnu anyway.. the website says so.so it looks like maybe it's effectively superceded by gnuwin32. I don't know if it has any advantages at all.though it does have things like wget and grep automatically.. gnuwin32 has them but you download them individually.not them all. gnu coreutils has many in one,but wget and grep and others are individuals.just reality.not a good reason 2use unxutils with its old versions. – barlop Sep 5 '10 at 22:48
Just noticed.. gnuwin32 also has non-gnu software. there's a package linux-utils-ng That has the rename command. – barlop Sep 5 '10 at 23:00
feedback

Your Answer

 
or
required, but never shown

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