How to find out details about hardware on the Linux machine?
-i.e - how to get a full list of hardware components in command line (on a machine with no window system)
Thank you.
lspci
for pci cards, lsusb
for usb, lshw
works on debian based distros, here's a list of ways to get other hardware specs,
If available, dmidecode
comes in handy. Particularly on Dell, HP, IBM hardware, where they bother to program relevant hardware information into the various registers.
lspci
is a great utility for listing the system hardware. (Anything on the PCI bus, anyway.)
cat /proc/cpuinfo
- Displays CPU info
cat /proc/meminfo
- Displays memory info
dmesg
(or cat /var/log/dmesg
) contains some info, not necessarily everything.
If you have a RedHat/CentOS system, you can use sosreport
to collect a good bit of information, though I don't know if it has all the hardware info listed in it.
Those are some good places to start to find the info you're looking for.