i need to get the Serial Number of my motherboard . i used dmidecode to get the serial number. but obviously i needed only the serial number and not the whole details. so i used grep to get only serial number but the problem is i get 3 occurences of "serial number " and only one of the occurences actually has the serial number with it.
Just a short Tutorial today. It’s surprising how many people do not know this. To change the hostname under Linux, open a terminal window. Type the following code.
sudo nano /etc/hosts
and change the text to your new hostname. Changes will take effect on Restart.