Posted on December 18th, 2007 by linux
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.
Filed under: Administration, Commands, Linux, Networks, Security | No Comments »
Posted on December 18th, 2007 by linux
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.
Filed under: Administration, Commands, Linux | No Comments »
Posted on December 18th, 2007 by linux
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
Filed under: Commands, Linux | No Comments »