Wednesday, August 29, 2007

Basic Linux Commands - 4

Command Function
ls Short listing of directory contents
cd [dirname] Change directory to [dirname]
cd .. Change directory and go back a level
cd Change back to your home directory
cd $\sim$ Change back to your home directory
cp [oldfile] [newfile] Copy a file
mv [oldpath/oldfile] [newpath/newfile] Move or rename a file
rm [file_to_delete] Delete a file (files are unrecoverable)
gzip [file_to_compress] Compress a file using gzip
gunzip [file_to_uncompress] Uncompress a gzipped file
mkdir [new_dir_name] Create a directory in the current directory
rmdir [dir_to_delete] Remove a directory (if it is empty)
man [command] Get the manual pages for [command]

No comments: