*nix commands

rpm

rpm -ivh :installs
rpm -Uvh :Upgrade
rpm -ev  :uninstall package
rpm -qa  :list all installed packages
rpm -qi dsplay installed information along with package version


#zip and unzip

compress/uncompress
zip
gunzip
gzip
gunzip -c mydir.tar.gz | tar xvf -
tar -xvf .. extract
tar -zxvf   ... for gz
tar -cxvf ... for bz

#find all logs with "error" keyword in it
find . -name "*.log" -exec grep -qi "error " '{}' \; -print


#sort 5 largest files
find . -ls |sort -nrk7| head -5

#find top process
ps axjf|grep <pid#>


#good for files recently (7 days) created and remove them
find . -name "*" -mtime -7 -exec rm {} \;


#more than 7 days. Good for older files deletions
find . -name "*" -mtime +7 -exec rm {} \;


#extend filesystem using extonline or resize2fs
lvextend -L +2000M /dev/VG00/lvora_backup
ext2online /dev/VG00/lvora_backup
or 
resize2fs /dev/mapper/VolGroup00-LogVol00