Listen to the network traffic with tcpdump except ssh

When ssh to remote server tcpdump command floods the screen with packets produces by ssh connection. To exclude ssh connection from tcpdump output we can use command:
# tcpdump -i eth0 not port 22
where eth0 is your network interface.

Check for bad blocks on hardrive with badblocks command

Badblocks linux command lets you to check for bad blocks on your hard drive. Very useful for new hard drives or drives which we are not sure about.
#badblocks -s /dev/hda
where /dev/hda is your block device.

Resize image with imagemagick convert command

To resize image with imagemagick is very easy. To resize image to the size 50% smaler than original image use command:
convert -resize 50% image.jpg image_resized.jpg
To resize image to specific size in pixels:
convert -resize 152×26 image.jpg image_resized.jpg