Archive for the 'Linux' Category

Monitor the Result of a Command

Monitor the result of some command by looping it an infinite while loop. To quit, press Ctrl+C. Thanks to Sreenath for this tip.


while [ 1 ]; do ls -l; sleep 2; done

Do Md5 check on CD/DVD/HDD

Perform an md5sum on a device, like a CD


dd if=/dev/hdc | md5sum

Convert Bin/Cue Images to ISO Image using Linux Command

You can use this command to convert a Bin/Cue image to an ISO image in a linux system. You may not have the bchunk command - so use yum or apt to install it before converting the image.


bchunk IMAGE.bin IMAGE.cue IMAGE.iso

Original Article

Packet Sniffing

Configure ‘eth0′ in promiscuous mode to gather packets (sniffing)


ifconfig eth0 promisc

Remove Deb Package

Remove a deb package from the system


dpkg -r package_name

Verify RPM Package

Verify the integrity of a rpm package


rpm --checksig package.rpm

Burn an ISO image

Burn an ISO image


cdrecord -v dev=/dev/cdrom cd.iso

Build RPM From RPM Source

Build a rpm package from a rpm source


rpmbuild --rebuild package_name.src.rpm

Download Multiple URLs

Command to download a series of urls with zero padding files…


for ((i=1;i<20;i++))
do wget "http://img55.onemanga.com/mangas/00000004/00000000/Naruto-Pilot-`printf "%02d" $i`.jpg"; done
done

PS Command Forest Mode

Displays linux tasks in a hierarchical mode


ps -e -o pid,args --forest