When we download file from the internet, we need to be certain of the consistency of the file that we download ever the internet. So that we know the file is not currupted. To do this we need to use md5sum.

to firstly use md5sum we need to create md5sum first from the file that we know is not corrupted so that we can compare it to another file in order to know that another file is corrupted or not.

here I use limewire packages to create md5sum

jacobian@linux-5fkn:~> md5sum limewire-basic-4.18.3-2.noarch.rpm
44254be6590b24dec8af1c7f665554e9  limewire-basic-4.18.3-2.noarch.rpm


then create another folder that has another file such as limewire-basic-4.18.3-2.noarch.rpm and a text file named limewire-basic-4.18.3-2.noarch.rpm.md5. In the text file paste the last output so that it contains

44254be6590b24dec8af1c7f665554e9  limewire-basic-4.18.3-2.noarch.rpm

save and then close the file. Open your konsole and change to that directory. Then use this command

jacobian@linux-5fkn:~/limewire> md5sum -c limewire-basic-4.18.3-2.noarch.rpm.md5
limewire-basic-4.18.3-2.noarch.rpm: OK

you have seen that the file is not corrupted. And we can use it to install packages.


 

Linux IP command

July 7, 2008

In linux there are many command for networking, below is some of them that I had known.

Display Current Config for all NIC’s:
ifconfig

Display Current Config for eth0: ifconfig eth0

Assign IP: ifconfig eth0 192.168.1.2

Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0

Assign Default Gateway
: route add default gw 192.168.1.1

Assign multiple IP’s: ifconfig eth0:0 192.168.1.2

Assign second IP
: ifconfig eth0:1 192.168.1.3

Disable network card: ifconfig eth0 down

Enable network card: ifconfig eth0 up

View current routing table:
route “or” route -n

View arp cache: arp “or” arp -n

Ping: ping -c 3 192.168.1.1

Trace Route
: traceroute www.whatismyip.com

Trace Path: tracepath www.whatismyip.com

DNS Test: host www.whatismyip.com

Advanced DNS Test: dig www.whatismyip.com

Reverse Lookup:
host 66.11.119.69

Advanced Reverse Lookup:
dig -x 66.11.119.69

source : www.whatismyip.com