Linux 101 : Discovering the hardware on your machine - lshw, hwinfo, ... -



The "lshw" command:

We could list the hardware on our system using the below command:


To get information about a specific device, we get its "Class" using the below command:


Then we can display information about each specific "Class", for example the "processor" class below:


Below are some other "Class" types:
  • storage
  • processor 
  • memory
  • network
The "hwinfo" command:

The hwinfo command gives us in depth information about the hardware on the machine, CPU, Bios, Hard drives, ...

To get a short description about the hardware on our system, we could use the below command:


In case of a server using RAID devices, we could see that information about our RAID setup using the below command:


To get information about a specific type of hardware, we use the below command:


Below are some of the items that could be used in the above command:
  • arch
  • bios
  • cpu
  • keyboard
  • memory, monitor
  • mouse
  • network
Various other commands - lspci, lsusb, ... -:

To display the PCI devices connected to our system, we use the below command:


To display the USB devices connected to our system, we use the below command:


To display information about the CPU, we use the below command:

Comments

Leave as a comment:

Archive