Archive for the ‘bash’ Category

Print the IPs which have more than 1000 hits

Posted: 11th May 2010 by Valkyrka in apache, bash

Here is how you can print the IPs ( fetched from the access_log of Apache ) which have more than 1000 hits : Additionally, you can change 1000 to your desired value.

Print current runlevel

Posted: 6th May 2010 by Valkyrka in bash, shell

Here is how you can get the current runlevel : Sample output :

List IPs on a Linux box

Posted: 29th April 2010 by Valkyrka in bash

Here is how you can list all the IP addresses set on a Linux box : Sample output :