Some very very useful unix command !!!

There is something I wish I could remember and forget again and again, so I note them down.

.tar ; use tar -xvvf to un-tar them
.gz ; use uncompress

find . -name xxx ; search for a file or dir named xxx in the current directory

rm ; to delete a file
rm -r ; to delete a directory

more ; to see the first few lines of a file
less ; to see the last few lines of a file

rpm -ivh packageName ; to install a rpm package