Using DOS and Linux Commands


DOS and Linux Commands

This appendix provides common commands used at the MS-DOS prompt in Windows 9x and their counterparts in Linux. Basic examples of how the command is used at the Linux shell prompt are also provided. Note that these commands usually have a number of options. To learn more about each command, read its associated man page (for example, type man ls at the shell prompt to read about the ls command).                                            

Simillar Commands

Command’s Purpose



Basic Linux Example

Copy files copy cp cp   file1   /home/pcs
Move files move mv mv  file1  /home/pcs
Lists Files dir ls ls
Clears screen cls clear clear
Closes prompt window exit exit exit
Display or sets date date date date
Deletes files del rm rm  file1
“Echoes” output on the screen echo echo echo This message
Edit file with simple text editor edit pico [a] pico  file1
Compares the contents of files fc diff diff  file1  file2
Finds a string of text in a file find grep grep this word phrase file1
Formats a diskette format a: mk2fs or mformat[b] /sbin/mke2fs /dev/fd0 (/dev/fd0 is the Linux equivalent of A:)
Display command help command  /? man[c] Man command
Creates a directory mkdir mkdir mkdir directory
Renames a file ren mv mv  file1 file2
Display your location in the file system chdir pwd pwd
Changing directories with a specific path cd pathname cd pathname cd   /home/pcs
Changing directories with a relative path cd  .. cd  .. cd  ..
Display the time time date date
Shows amount of RAM and use mem free free


—————————  Thanks


About Author


Leave A Reply

CAPTCHA ImageChange Image