Monday, August 8, 2011

Commands To Remember - "dmesg"

One of the most widely used command to retrieve the information from the kernel buffer. I will illustrate this with an example - I added a network card, but when I am running the command to check the NIC config, i found that the NIC is not listed there. Find the snap:
[root@localhost~:]#ifconfig

Surprised...I were. Where is my NIC card. Its not listed. I checked the configuration of the system...but of no use. I was not able to make up where's the error. Then I ran the command:
[root@localhost~:]#ifconfig -a

I found that the network card is listed as `eth1`. Then i realized, due to some issue, I renamed my card from eth0 to eth1. I check the file /etc/network/interface and found that the name of the interface is eth1.

Again, I executed the command,
[root@localhost~:]#dmesg | grep -i network

And heres the output:

No comments:

Post a Comment