On ZDNet: 64-bit Windows goes mainstream

Quick Tip: Learn the Linux versions of common DOS/Windows commands

Tags: Operating systems, UNIX, OPEN SOURCE, Desktops, John Sheesley, Linux, DOS, Microsoft Windows

  • Save
  • Print
  • 6

Takeaway: You probably know the DOS command line inside out. If you're not as familiar with the Linux command line, this article can quickly show you new ways of using old commands.


Most experienced support techs can drop to a command prompt and execute commands and utilities with confidence. However, if you're starting to support Linux desktops on your network, you may quickly find yourself lost when you open a Linux terminal session. Figure A is a list of common DOS/Windows commands that you probably use on a daily basis and their Linux counterparts:
Figure A
What you want to do How you did it in
DOS
How you do it in Linux
Copy a file copy path1\filename1 path2\filename2 cp path1/filename1 path2/filename2
Copy subdirectory xcopy path1\. path2 /s cp -R path1 path2
Delete a file del filename rm filename
Move a file move path1\filename1 path2 mv path1/filename1
path2
Rename a file ren filename1 filename2 mv filename1 filename2
List a directory dir ls
Change directory cd \path cd /path
Make directory md path md path
Delete a subdirectory deltree \path1 rm -R path
List text file contents type filename cat filename
Edit a file edit filename pico filename
Format floppy format a: fdformat /fd0H1440
Check for disk errors chkdsk drive -or- scandisk drive fsck /device
Change file attribute attrib +- attribute filename chmod mode filename
Clear screen cls clear
Display environment variables set env
Set environment variable set variable=value env variable=value
Set time time time date MMDDHHSS
Close command prompt exit exit
DOS/Windows commands vs. Linux commands

What do you think of this article format?
Our editors are developing new methods and formats for delivering the solutions you need. Do short articles and tables such as this one better help you overcome the IT problems that keep you up at night? Share your thoughts with our editors, and you could win a free TechRepublic book or CD of your choice.


  • Save
  • Print
  • 6

Print/View all Posts Comments on this article

CoolRui@...  | 01/14/04
You asked for it....John Sheesley - TechRepublic Pro Techrepublic | 01/14/04
I didn't find itwhatever_gong82@...  | 01/15/04
s p a c e scgrau@...  | 01/15/04
Oops...John Sheesley - TechRepublic Pro Techrepublic | 01/16/04
Also an excellent resourceEliteGeek  | 01/16/04
Second the Motion?glgruver  | 01/14/04
Third the motion!mmoran@...  | 01/14/04
And I looked after.... So here it is!aristogato@...  | 01/14/04
One main command missingAlanGeek  | 01/14/04
Good Addendum!Gastón Nusimovich  | 01/19/04
I like the article!fac  | 01/14/04
Missing CommandsTimothy J. Bruce  | 01/14/04
Useful list, lousy formathparks  | 01/14/04
another missed command - sortaCactus Pete  | 01/14/04
Good Stufftechpro6@...  | 01/15/04
Very helpfulgmulak@...  | 01/16/04
Here's another resourcejrandom42  | 01/17/04
Great resourceclaydavidson@...  | 01/19/04
one little error in the article and more tipsdan.castelhano@...  | 01/18/04
Finally!johnstone_jh@...  | 01/19/04
Furhter attributes using chattr / lsattrPenguinVitamins  | 01/20/04
Any room for mistakes yet?GetReal-mac.com  | 04/14/05
Don't need a GUI?CMB from Omaha  | 04/14/05

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET
advertisement
Click Here