DOS vs. Linux Commands To Remember | A non-stock, non-profit organization composed of individuals dedicated to promoting open source software. Batangas, Philippines">
Google
 
Web boss-ph.blogspot.com

Friday, November 03, 2006

DOS vs. Linux Commands To Remember

Command's PurposeMS-DOSLinuxBasic Linux Example
Copies filescopycpcp thisfile.txt /home/thisdirectory
Moves filesmovemvmv thisfile.txt /home/thisdirectory
Lists filesdirlsls
Clears screenclsclearclear
Closes prompt windowexitexitexit
Displays or sets datedatedatedate
Deletes filesdelrmrm thisfile.txt
"Echoes" output on the screenechoechoecho this message
Edits files with simple text editoreditpicopico thisfile.txt
Compares the contents of filesfcdiffdiff file1 file2
Finds a string of text in a filefindgrepgrep this word or phrase thisfile.txt
Formats a disketteformat a: (if diskette is in A:)mke2fs /sbin/mke2fs /dev/fd0 (/dev/fd0 is the Linux equivalent of A:)
Displays command helpcommand /?manman command
Creates a directorymkdirmkdirmkdir directory
View a filemorelessless thisfile.txt
Renames a filerenmvmv thisfile.txt thatfile.txt
Displays your location in the file systemchdirpwdpwd
Changes directories with a specified path (absolute path)cd pathnamecd pathnamecd /directory/directory
Changes directories with a relative pathcd ..cd ..cd ..
Displays the timetimedatedate
Shows amount of RAM and usememfreefree

source : Redhat Docs

0 Comments:

Post a Comment

<< Home