Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Typing UNIX commands in a DOS window

created by semprini

(idea) by semprini (1 d) (print)   ?   (I like it!) 1 C! Sun Jul 15 2001 at 23:53:26

Most of the time that I'm interacting with a computer on a lower level than the point and click interface, it's a UNIX machine. I'm typing commands into an xterm, Eterm or even your generic ssh or telnet client.

I am working for a large computer company known for making PCs, so of course the cutting-edge technology I'm using is a pentium 2 with a whopping 64 Mb of RAM running Windows NT 4. (Not only am I stuck using windows, but I'm using windows on a shitty PC.)

There are times, though, when I decide that I need a command prompt window for Windows itself. Even though the prompt may be a very obvious C:\> i still find myself typing commands lik 'ls -la', 'uptime', 'pwd', 'uname -a' and even 'rm -f'.

Thankfully people have ported UNIX shells and commands to win32 so that these commands can actually work in windows. I find it frustrating, though.

Maybe Microsoft should just write a wrapper for these commands so that rather than get:

C:\> pwd
The name specified is not recognized as an
internal or external command, operable program or batch file.

You get:

C:\> pwd
This is WINDOWS.  Repeat, WINDOWS.  Not UNIX!  Point and click too 
good for you?  What are you using a command prompt for, anyway, luddite-boy?

Does Microsoft have a sense of humor?


(idea) by XCthulhu (1.3 y) (print)   ?   (I like it!) 1 C! Mon Jul 16 2001 at 0:58:21

Hmm... perhaps there should be some elaboration on the UNIX shells available to those who use Windows. Truth be told, I can't masquerade as a expert on this subject, having never even really used a Windows machine in my life. Anyhow, of those I know, there are plenty of options for those who want a UNIX prompt under Windows.

  • Cygwin - Some of my friends use this, and some folks in MIT Center for Space Research recommend this as the next best thing to running Linux. I have used it, it is sluggish. But... I think this is your best bet if you want to have as close as possible to a UNIX environment under a Windows DOS evironment. It has sed, awk, bash, a version of mount, the gnu C compiler, among other things. Runs sshd and ftpd as well. Released under the General GNU Public License.

  • U/Win -I don't know of anyone who uses U/Win, I think most settle for Cygwin, which seems to have a superior installer, and all around superior shell support. However, U/Win has very extensive library support - in fact, fork has been reprogrammed from the ground up, U/Win can even run the XFree86 and GNOME. At the DOS prompt, it has a port of the Korn Shell, but I here it is slower then Cygwin. U/Win, developed by AT&T, is free as a binary for educational purposes and private use, making it free as in beer, not free as in libre.

  • Many of the GNU Utils have been ported to Windows out of the kindness of people's hearts. Mingw is a Cygnus port of GCC without the rest of Cygwin, making it rather convenient. There are of course ports of gzip, sed, awk, perl, python, su and many other utils that you can install into the DOS search paths. Just about everything that you can find stand alone is under the GPL, and this is probably the fastest option of all.

  • Update: yerricde writes: "DJGPP is like Cygwin for DOS. It includes a compiler and binutils in the standard package; you can go on the FTP site and download a LOT of ported GNU packages, including bash, fileutils, and textutils (which comprise most common UNIX comands)." Thanks yerricde!

And those are the shells I know of. Please /msg me if I am wrong about licensing/speeds, and feel free to post other Shells for Windows.


printable version
chaos

FreeCell and Microsoft Sense of Humor Humans have six senses, why does everyone think we only have five? We atheists have a good sense of humor Roman Sense of Humor
Microsoft does your mom Faking an orgasm does NOT make sense funny UNIX commands Cygwin
Using /dev/audio to eavesdrop DOS Color Hack I have Jesus in my asshole, does that count? Roman Catholic theology of a cloned human's soul
DJGPP Eterm uname Windows Notepad
Does Humor Belong in Music? XFree86 Luddite rm -rf
How does the Military Selective Service Act apply to individuals who have had a sex change? Command Line Interface Unix GCC
No more writeups are being accepted for this node. If you feel you have something to add to this node, post it on your Scratch Pad and contact an editor.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Just another sprinkling of indeterminacy
God is Dead
Markov chain
Buying a house
Zazen
Federal Marriage Amendment
Watching my kitty-cat die
What is it like to menstruate?
The everything2 distributed.net team
If I were watched alone, I'd be considered insane
Slitting your wrists
Shanghainese
pro-anorexia
Celtic Mythology
New Writeups
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
This page courtesy of The Everything Development Company