Common DOS to Linux Commands

Command's Purpose  MS-DOS  Linux Basic  Linux Example 

Copies files                  copy         cp                 cp thisfile.txt /home/thisdirectory 

Moves files                  move        mv                mv thisfile.txt /home/thisdirectory 
 

Lists files                     dir             ls                 ls 

Clears screen                cls            clear             clear 

Closes prompt window  exit           exit               exit 

Displays or sets  date     date         date               date 

Deletes files                  del           rm                 rm thisfile.txt 

"Echoes" output            echo         echo              echo this message 

Edits files                     edit           pico[a]           pico thisfile.txt 

Compares the contents  fc             diff                diff file1 file2 

Finds a string of text      find         grep                grep this word or phrase thisfile.txt 

Creates a directory        mkdir      mkdir              mkdir directory 

Screens through a file    more        less[d]            less thisfile.txt 

Renames a file              ren           mv                 mv thisfile.txt thatfile.txt[e] 

Shows amount of RAM mem         free               procinfo 

Check Disk                   chkdsk      df                  df

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.