Monthly Archive: May 2008

Monitor http (80) connections every 30 seconds 0

Monitor http (80) connections every 30 seconds

#!/bin/sh while true; do netstat -n |grep ‘:80’ |grep ‘EST’ | wc -l; sleep 30; done;

Find old/oldest file from the tmp on Linux 0

Find old/oldest file from the tmp on Linux

find /tmp/ -type f -mtime +1 -exec rm {} \; Delete all files having ‘jpg’ as extension within a folder and sub-folder older than 15 days old. find . -mtime +14 -type f -name...

SED command examples 0

SED command examples

remove/delete the line 10 from a file: sed -i ’18 d’ fichier_A.txt OR sed -i 18d fichier_A.txt Delete 5 lignes from a certain line number, ex from line 6 sed -i 5,+6d file.txt Delete...

Set customized screen resolution on your vmware machine 0

Set customized screen resolution on your vmware machine

Open the vmx file that belongs to your vm machine Add these two line into the file:

Configuration JAVA Running on Redhat Linux or Centos 0

Configuration JAVA Running on Redhat Linux or Centos

Having Redhat or Centos Linux installed and running, by default the Operating system might come with an older Java Version, like 1.4.x

Menu