lshw

Should dmidecode not be available, you can also make use of lshw, a command for listing hardware. Again, it makes use of the DMI table on a device.

Very quickly, we can use a format option of lshw to show the bus information of a system:

$ sudo lshw -businfoBus info Device Class Description===================================================== system VirtualBox bus VirtualBox memory 128KiB BIOS memory 1GiB System memorycpu@0 processor Intel(R) Core(TM) i7-7500U CPU @ 2.70GHzpci@0000:00:00.0 bridge 440FX - 82441FX PMC [Natoma]pci@0000:00:01.0 bridge 82371SB PIIX3 ISA [Natoma/Triton II]pci@0000:00:01.1 scsi1 storage 82371AB/EB/MB PIIX4 IDEscsi@1:0.0.0 /dev/cdrom disk CD-ROMpci@0000:00:02.0 display VirtualBox Graphics Adapterpci@0000:00:03.0 ...

Get Linux Administration Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.