Archive for December 22nd, 2007

Find Current IP Address

Find the IP address of all the active interfaces.


ifconfig | egrep -o '^[a-z0-9]{1,12}|inet addr:[0-9.]+'

Basic Diff

If you use the diff command, you will be able to see the difference between the files as shown below:


diff file1 file2

diff -y file1 file2 -W 120 #View side by side