Friday, June 10, 2011

50 Most Frequently Used UNIX / Linux Commands (With Examples) 1. tar command examplesCreate a new tar archive.$ tar cvf archive_name.tar dirname/Extract from an existing tar archive.$ tar xvf archive_name.tarView an existing tar archive.$ tar tvf archive_name.tar 2. grep command examplesSearch for a given string in a file (case in-sensitive search).$ grep -i "the" demo_filePrint the matched line, along with the 3 lines after it.$ grep -A 3 -i "example" demo_textSearch for a given string in all...

Wednesday, June 8, 2011

#for host in /sys/class/scsi_host/host*; do echo - - - > $host/scan; done or echo "- - -" > /sys/class/scsi_host/hostX/scan X is hba port 0/1/2/3 Note: OS is RH...