[OT] unix-like command shell for windows?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

[OT] unix-like command shell for windows?

Post by *StickyNomad »

Hi,

If anybody can recommend a nice command-shell (or toolpack) that supports the standard unix commands (grep, cat,...) for windows, my ears are opened wide :)

I'd just like to have a little shell that allows me to sniff a bit around with standard-unix-commands and maybe solve some occasional tasks using them, so it's mainly out of curiosity. I didn't find a suitable shell yet after a little research, so if you can recommend one, don't hesitate to let me know...
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Cygwin may be of help.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

2StickyNomad

It's not exactly what you are looking for, but I'd like to recommend the CoreUtils for Windows even so.
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

CoreUtils for Windows are nice link, but...
The problem here is that you are very limited with command prompt shell which is not very powerful to say the least. And I noticed that pipes sometimes have strange behavior...

From my experience Cygwin is much better solution, but it can be a bitt hard to set up. Be careful on install because Cygwin can be quite large if you choose to install all.
Aditionaly if something is not working as you think it should, check the path that /usr/bin is before /cygdrive/c/windows/... folders...
If the startup time is to great, tweek default startup scripts and you will have MUCH faster startup, especialy on slow (e.g. network drives)...
Ambiguity succeeds where honesty dares not venture.
User avatar
CoMiKe
Senior Member
Senior Member
Posts: 285
Joined: 2003-05-05, 17:45 UTC
Location: Salamanca, Spain

Post by *CoMiKe »

Take a look at Msys, from the MinGW compiler for Windows.
User avatar
henrich.fukna
Junior Member
Junior Member
Posts: 60
Joined: 2003-03-07, 10:18 UTC
Location: Bratislava, Slovakia

Post by *henrich.fukna »

UnixUtils on SouceForge.net
shammat
Senior Member
Senior Member
Posts: 253
Joined: 2003-04-11, 23:13 UTC

Post by *shammat »

I don't really like the Cygwin stuff. I prefer combination of the gnuwin32 (or UnixUtils) plus a non-cygwin bash, like:

http://win-bash.sourceforge.net/

And I found this:
http://www.steve.org.uk/Software/bash/
Which seems like a copy of the cygwin bash without the cygwin overhead, but haven't tried it
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

U can use "RTR's Super ReadyPak" console utilities which are exe ports of some major unix utilities.

Also, there is support for Posix compliant applications in MS Windows. If you install MS Unix Services you can run Unix applications together with your Windows apps, like you can open cmd.exe and type greep or ls.

My personal opinion is that if you have powerful computer, nothing can come close to Virtual Machine.

RTR: http://www.rtr.com/winpak/Documentation/index.htm
MS: http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx
Habemus majkam!
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Woah, that's a bunch of tools, thank you all guys! that will keep me busy with evaluating for a little while :)
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

GnuWin32 is easily to fetch with this Batch, about 200 MB of tools altogether including all necessary DLLs:
http://getgnuwin32.sourceforge.net/

Better than fiddling around with the single archives. ;)

Icfu
This account is for sale
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2icfu

Thanks! Although I'd prefer a simple package with just one or a few small standalone exes. Sucking and installing 200M are quite an overkill just to try around a bit with a few unxi commnds, but I'll give it a try if I don't find a more compact solution. Thanks for your info anyway!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

then you should definitely check RTR. This is the list of tools I downloaded once here and they work perfectly:

Code: Select all

bash.exe       cat.exe        chmod.exe
cksum.exe    cmp.exe       comm.exe       cp.exe         csplit.exe
cut.exe         dd.exe         df.exe         diff.exe       diff3.exe
dir.exe         dltd.exe       du.exe         egrep.exe      expand.exe
fgrep.exe      flex.exe       fmt.exe        fold.exe       gawk.exe
grep.exe       head.exe     install.exe    join.exe       less.exe
lesskey.exe   ls.exe         make.exe       [Manual]       md5sum.exe
mkdir.exe     mv.exe       nl.exe         od.exe         paste.exe
pr.exe          ptx.exe        rcp.exe        rm.exe         rmdir.exe
rsh.exe         rtr.dll        rtr_run.exe    sdiff.exe      sed.exe
sort.exe       split.exe      sum.exe        tac.exe        tail.exe
touch.exe      tr.exe         tsort.exe      unexpand.exe   uniq.exe
vdir.exe       wc.exe   
Only 1 or 2 of those require rtr.dll. Other are independent.
Habemus majkam!
IRCer
Junior Member
Junior Member
Posts: 15
Joined: 2003-03-07, 15:41 UTC
Location: Warsaw, Poland
Contact:

Post by *IRCer »

If you're using Windows Server 2003 R2, it already has Subsystem for UNIX-based Applications (SUA). You can download Utilities and Software Development Kit (SDK) for Subsystem for UNIX-based Applications to get gcc and other dev. tools - more information:
http://www.microsoft.com/windowsserver2003/r2/unixinterop/default.mspx
http://www.microsoft.com/windowsserver2003/R2/unixcomponents/webinstall.mspx

In case you have older Windows OS (like 2000, XP, 2003), you can try Windows Services for UNIX (already mentioned):
http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx
http://www.microsoft.com/windows/sfu/downloads/default.asp

In both cases, there are add-ons (bash, mc, etc...) for SFU and the SUA available from here:
http://www.interix.com/
http://www.interix.com/tools/warehouse.htm (free, but require registration).

By the way - this is slightly different thing, but you may also want to take a look at "PowerShell" (formerly known as "Monad", "MSH") - it's both command-line shell and scripting technology:
http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I wouldn't recommend use of Posix Subsistem if you care about your current windows installation. It is overkill by my short experience....

Also, Monad is not SLIGHTLY different thing.
It is HUGELY different thing.
Habemus majkam!
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Thanks again to y'all for your vast amount of suggestions!

But the quite sophisticated systems you proposed are a bit overdosed for me, as I just like to try around with a few standard-commands. For this little playing, I don't want to 'pay the price' of quirking an all-purpose-100s-of-Meg-sized-Monster-package into my system. A small bunch of stand-alone exes (grep, cat, ls,...) would be perfect for me.

After further searching, I finally found UnxUtils on sourceforge, this little package seem to fit my humble needs on first glacne. But thanks anyway for all your suggestions, they might be of use for me when my skills and demands may have grown some time :wink:
Post Reply