Using dmesg to Collect Hardware Information
dmesg is a record of everything detected by the kernel.
To view all dmesg output, use:
$ dmesg | less
You can also filter the output of dmesg to find specific devices.
For example, to list all USB devices, use:
$ dmesg | grep -i usb
