Posts

Showing posts from May, 2015

How to find serial number and other hardware details of Laptop/PC/Server from command line using dmidecode

Whether you are checking your hardware's  warranty or trying to raise a support ticket, the first thing your hardware vendor will ask is the serial number and model name of your your Laptop/PC/Server. In most cases a laptop's serial number is printed at the bottom and for a  PC or a Server, it will be located at the rear side. But what if the serial number printed is tampered or faded. What if the machine is located in a remote location. In such situations we use dmidecode command to obtain the hardware details.

Understanding awk command with examples

Image
Awk is a simple and powerful programming language used for processing text files. It is widely used by system administrators as a data manipulation, extraction and reporting tool. Awk treats every file as a sequence of records and by default each records are separated by a new line. Each record consist of one or more fields which are by default separated by a space. The syntax for awk command is