Hwinfo Command in Linux - An Overview ?

The hwinfo command is a very handy command line tool that can be used to check details about hardware components. It reports information about most hardware units including cpu, hdd controllers, usb controllers, network card, graphics cards, multimedia, printers etc. Hwinfo depends on the libhd library to gather hardware information which depends on libhal.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Linux Commands System queries.

In this context, we shall look into how to use the hwinfo command in Linux.

How to Install hwinfo in Linux ?

To get hwinfo installed on your Linux system, simply Run apt command shown below:

$ sudo apt install hwinfo

hwinfo command syntax

The syntax of hwinfo command is:

$ hwinfo [options]

The [options] gives:

1. –help explains how to use the command:

$ hwinfo –help

2. You can run the command without [options] to display information about all hardware units:

$ hwinfo

3. –short display summary information:

$ hwinfo --short

4. –cpu display CPU information:

$ hwinfo --short --cpu

5. delete –short to display detailed information

6. –network display network interface information:

$ hwinfo --network

7. –netcard display network card information:

$ hwinfo --netcard

8. –disk display disk information:

$ hwinfo --disk

9. –usb display USB device controllers information:

$ hwinfo --usb

10. –storage display hard drive controllers information:

$ hwinfo --storage

How to Display multiple devices together ?

To display information on multiple devices at the same time, just add all the options.

For example, We want to display information of USB device, network, disk:

$ hwinfo --usb --network --disk

How to Export information to a file ?

If you want to export detailed information:

$ hwinfo --log hwinfo.txt

If you want to export summary information, add –short option:

$ hwinfo --short --log hwinfo.txt

[Need Linux System remote support? We can fix any issue. ]

This article covers how to use the hwinfo command in Linux. hwinfo command reports information about CPU, RAM, keyboard, mouse, graphics card, sound, storage, network interface, disk, partition, bios, and bridge, etc,.

The hwinfo utility displays the following information:

  • CPU : manufacturer, model, frequency
  • Motherboard : manufacturer, model, BIOS version, on-board controller
  • RAM : RAM size, RAM type (FP, EDO, SDRAM, DDRAM)
  • Hard disk controller : SCSI, IDE, on-board/card, model, BIOS version, chipset
  • Hard disks : type, manufacturer, model, size, bus system (SCSI, IDE), partitioning
  • CD-ROM drives : type, manufacturer, model, speed, internal/external, parallel port?
  • Other media : CD writer, streamer (model, manufacturer, SCSI/EIDE/floppy streamer, capacity), ZIP drives, Jaz drives, MO drives, flopticals
  • Graphics card : model, manufacturer, chipset, memory (DRAM, VRAM), memory size
  • Other peripherals : printer, parallel ports, serial ports, modem, ISDN card

Related Posts