Tuesday, December 05, 2006

The humble Linux cheat sheet

Intro lang ito... so don't depend so much dito... K? kung gusto niyo pang malaman... use --help

Moving around the file system:
pwd - "Print working directory", show your location
ls - list files
ls -l - list files with additional info
ls -a - list hidden files :D
cd - change directory
cd .. - go to parent directory

Examine files:
file - determine type of file
cat - Concatenate file
less - View text files and paginate them if needed (to exit press q)

Manipulate files:
cp - copy file (Usage: cp )
cp -i - ask first before copy (if destination exists)
cp -r - copy a directory with its contents
mv - move or rename a file
mv -i - ask first before moving or renaming
rm - remove (delete) file
rm -r - remove directory with its contents
rm -i - Ask before removing file/directory. Good to use with -r option
mkdir - Make directory
rmdir - remove empty directory

0 Comments:

Post a Comment

<< Home