Category: Linux

Check Ext2 FS

repair / check integrity of ext2 filesystem on disk hda1 fsck.ext2 /dev/hda1

Static Route

Configure static route to reach network ‘192.168.0.0/16’ route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1

Import All MySQL Sql Dumps in a Folder

This command will import all the MySQL sql dumps in the current folder. You can use this to restore your…

Configure Gateway

Configure the default gateway route add -net 0/0 gw IP_Gateway

Spy on SSH Users

See what your users are doing using SSH connected to your system – this will show you what happens on…

Find Link Status

Show link status of all interfaces ip link show

Shell Script for Batch Convertion of Images

An easier way to batch convert images using the ‘convert’ command… #!/bin/sh # An Easy command to use the convert…

Rip Audio CD to Wav

Rip audio tracks from a CD to wav files cd-paranoia -B

Burn Compressed ISO Image

Burn a compressed ISO image gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom

Search Debian Package

Show all deb packages with the name “httpd” dpkg -l | grep httpd