Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am an experienced UNIX user that knows my way around the UNIX terminal. However, whenever I use a Windows computer and try and use the Command Prompt, I cannot do much more than list the contents of a directory with dir and change directory with cd. I want to learn how to do things with DOS. Can you guys please recommend some stuff that will help a UNIX guy learn how to use DOS? Thanks!

share|improve this question

migrated from stackoverflow.com Nov 17 '10 at 21:56

This question came from our site for professional and enthusiast programmers.

2  
The best way I can think to use DOS is to replace it with something else. :P –  cdhowie Nov 17 '10 at 21:43
4  
Install cygwin, open bash shell, problem solved. –  Paul Tomblin Nov 17 '10 at 21:44
1  
You'll find DOS to have allot left to be desired. –  John Giotta Nov 17 '10 at 21:45
    
I don't think you can do much things with dos... :) –  Vic. Nov 17 '10 at 21:46
    
Just for the record, Windows Command Prompt is not MS-DOS or any DOS at all. It is a Windows program, in the same way as sh and xterm are just another Unix programs. –  grawity Jan 1 '12 at 19:46

3 Answers 3

up vote 3 down vote accepted

Try http://www.cygwin.com/ This way you can use your windows box without having to learn new (old) commands.

share|improve this answer
    
And if you don't want a UNIX compatible environment, just a few UNIX commands to use from a CMD prompt then go for GNUWIN gnuwin32.sourceforge.net –  Michael Dillon Aug 7 '11 at 4:02

I'm a Linux SysAdmin, live and die by *nix.

With that said... I love DOS, it reminds me of childhood. Its so beautifully simple, it was created for real-time execution.

I really hate the tacked on Win9x Arch, and I dislike the NT arch; but I admit NT was a huge improvement, and its workable. I'm assuming you don't mean real DOS, do you? Did you really mean CMD.exe? like the command shell?

  1. This Website has a CMD.exe and BASH equivilant chart. The chart is really for going DOS to Linux, but it still applies for the inverse.

  2. If you just want to practice, you could install WINE. WINE has a CMD.exe compatible shell called WCMD. After WINE is installed, start an instance with wineconsole --backend=user wcmd

  3. If you want to be more productive in windows, there is always the venerable Cygwin. I actually think Cygwin is HUGE, and prefer mingw's MSYS. In reality anything other than plain MinGW, is really a POSIX environment inside Windows. When I'm forced to work Windows, I always prefer compiling to MinGW over both MSYS/Cygwin.

  4. If you want a more productive shell, to work with the Windows environment rather than a self-contained POSIX sub-environment, I really like TCC/LE. The learning curve is higher than bringing POSIX to Windows, but the requirements are less, and most of what you learn also relates to CMD.exe.

share|improve this answer

I would recommend missing out DOS if possible and going straight to PowerShell. It is a much more productive environment that gives you the sort of power you are used to from the Unix shell. If you come from Unix to DOS you will only get frustrated by the hoops you have to jump through to even get simple things working.

share|improve this answer
1  
I have never heard of PowerShell. What is it? –  agentbanks217 Nov 17 '10 at 21:45
    
@agentbanks217: A modern shell and scripting language for Windows that integrates with the .NET runtime. –  Mark Byers Nov 17 '10 at 21:48
1  
This answer would be ten times better with an example of a simple bash script, its equally simple equivalent in PowerShell, and the soul-crushingly awful and thoroughly non-obvious equivalent batch file. –  Jeremy W. Sherman Nov 17 '10 at 21:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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