Linux 101 : Discovering the hardware on your machine - lshw, hwinfo, ... -
The "lshw" 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:
- 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