Hardware info

Most of the commands only give limited to no output when run as unprivileged user.

systool – view system device information by bus, class, and topology

Calling systool without parameters will present all available bus types, device classes, and root devices.

# systool -b usb
# systool -c fc_host -v
# systool -c fc_remote_ports -v

https://sites.google.com/site/itmyshare/storage/storage-disk/systool-a-useful-tool-for-san-but-also-for-sysfs-devices

Supported switches

proc filesystem

https://en.wikipedia.org/wiki/Procfs

https://www.kernel.org/doc/html/latest/filesystems/proc.html

more /proc/cpuinfo
more /proc/meminfo

lshw – list hardware

lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines (PowerMac G4 is known to work).

It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB.

Info about specific stuff

lshw -short -class disk
lshw -short -class memory
lshw -short -C processor
lshw -C display
lshw -C multimedia
lshw -C network
lshw -C storage
lshw -C bus
lshw -C tape
$ lshw -short -class memory
H/W path           Device      Class          Description
=========================================================
/0/0                           memory         96KiB BIOS
/0/1000                        memory         4GiB System Memory
/0/1000/0                      memory         4GiB DIMM RAM
$ lshw -short -class storage
H/W path           Device      Class          Description
=========================================================
/0/100/3/0         scsi0       storage        MegaRAID SAS 2108 [Liberator]
/0/100/11/0                    storage        C602 chipset 4-Port SATA Storage Control Unit
/0/100/1f.2                    storage        C600/X79 series chipset 6-Port SATA AHCI Controller
/0/3/0             scsi1       storage        Series 7 6G SAS/PCIe 3
$ sudo lshw -short -class bus
H/W path           Device      Class          Description
=========================================================
/0                             bus            0AECh
/0/100/1a                      bus            82801JI (ICH10 Family) USB UHCI Controller #4
/0/100/1a/1        usb3        bus            UHCI Host Controller
/0/100/1a.1                    bus            82801JI (ICH10 Family) USB UHCI Controller #5
/0/100/1a.1/1      usb4        bus            UHCI Host Controller
/0/100/1a.2                    bus            82801JI (ICH10 Family) USB UHCI Controller #6
/0/100/1a.2/1      usb5        bus            UHCI Host Controller
/0/100/1a.7                    bus            82801JI (ICH10 Family) USB2 EHCI Controller #2
/0/100/1a.7/1      usb1        bus            EHCI Host Controller
/0/100/1d                      bus            82801JI (ICH10 Family) USB UHCI Controller #1
/0/100/1d/1        usb6        bus            UHCI Host Controller
/0/100/1d.1                    bus            82801JI (ICH10 Family) USB UHCI Controller #2
/0/100/1d.1/1      usb7        bus            UHCI Host Controller
/0/100/1d.2                    bus            82801JI (ICH10 Family) USB UHCI Controller #3
/0/100/1d.2/1      usb8        bus            UHCI Host Controller
/0/100/1d.7                    bus            82801JI (ICH10 Family) USB2 EHCI Controller #1
/0/100/1d.7/1      usb2        bus            EHCI Host Controller
/0/100/1d.7/1/5                bus            USB hub
/0/100/1e/9                    bus            FW322/323 [TrueFire] 1394a Controller
/0/3/0                         bus            FC949ES Fibre Channel Adapter
/0/3/0.1                       bus            FC949ES Fibre Channel Adapter

dmidecode – DMI table decoder

dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision.

-t, –type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI type number, or a comma-separated list of type numbers, or a keyword from the following list: bios, system, baseboard, chassis, processor, memory, cache, connector, slot.

Info about specific stuff

dmidecode --type baseboard
dmidecode --type memory

lspci – list all PCI devices

lspci is a utility for displaying information about PCI buses in the system and devices connected to them.

glxinfo – show information about the GLX implementation

glxinfo | grep Device

inxi – Command line system information script for console and IRC

-F , –fullShow Full output for inxi. Includes all Upper Case line letters (except -J and -W) plus –swap, -s and -n.
EXTRA DATA OPTIONSThese options can be triggered by one or more -x. Alternatively, the -v options trigger them in the following way: -v 3 adds -x; -v 6 adds -xx; -v 7 adds -xxx
These extra data triggers can be useful for getting more in-depth data on various options. They can be added to any long form option list, e.g.: -bxx or -Sxxx
-m , –memoryMemory (RAM) data. Does not display with -b or -F unless you use -m explicitly.
-p , –partitions-fullShow full Partition information (-P plus all other detected mounted partitions).
-r , –reposShow distro repository data.
-z, –filterAdds security filters for IP addresses, serial numbers, MAC, location (-w), and user home directory name. Removes Host:. On by default for IRC clients.
inxi -Fxxxmprz