One liner: To get available virtual memory

vmstat -s -SM | grep "free memory" | awk -F" " '{print$1}'
Advertisements

[HowTo] Replace ip address using sed

Following one-liner will search for a ip address pattern in the specified file and replace it with the one provided :

 sed 's/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}/IPADDRESS-COMES-HERE/g' /SourceFilename > /DestinationFilename

How to Install Latest Firefox 4 and Firefox 3 in Ubuntu ?

How to Install Latest Firefox 4 and Firefox 3 in Ubuntu ?

  • Do the following in Terminal to install latest Firefox 4.0 and Firefox 3 in Ubuntu.
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa && sudo apt-get update
sudo apt-get install firefox-4.0
sudo apt-get install firefox