27

How can I check what hardware I have? (With BIOS version etc.)

  • 6
    On what Operating System ? There is no standard command so anything would be more or less distribution specific. – jlliagre Dec 6 '10 at 10:40
  • @jiliargre I wouldn't say distribution specific but certainly OS, Linux and BSD probably greatly vary here. – xenoterracide Dec 6 '10 at 12:56
  • And Solaris, HP-UX, AIX, whatever too. That's what I meant. – jlliagre Dec 6 '10 at 20:34
  • @jll It's tagged [linux], so I suppose... – Tshepang Feb 3 '11 at 19:16
26

If your system supports a procfs, you can get much information of your running system. Its an interface to the kernels data structures, so it will also contain information about your hardware. For example to get details about the used CPU you could cat /proc/cpuinfo For more information you should see the man proc.

More hardware information can be obtained through the kernel ring buffer logmessages with dmesg. For example this will give you a short summary of recently attached hardware and how it is integreated in the system.

These are some basic "interfaces" you will have on every distribution to obtain some hardware information.

Other 'small' tools to gather hardware information are:

  • lspci - PCI Hardware
  • lsusb - USB Hardware

Depending on your distribution you will also have access to one of these two tools to gather a detailed overview of your hardware configuration:

  • lshw
  • hwinfo (SuSE specific but availible under other distributions also)

The "gate" to your hardware is thorugh the "Desktop Management Interface" (-> DMI). This framework will expose your system information to your software and is used by lshw for example. A tool to interact directly with the DMI is dmidecode and availible on the most distributions as package. It will come with biosdecode which shows you also the complete availbile BIOS informations.

8

To display a nice overview of my hardware, I use lshw -short, best run (as root). You can just run lshw plain of course, but I prefer the conciseness that the -short option offers.

To check my HDD usage, I use df --human-readable, which should be available by default on your system (unlike lshw).

Also, have a look at checking hardware on linux.

  • 2
    hwinfo is another nice utility and lm-sensors for temperatures. – Patkos Csaba Dec 6 '10 at 7:54
  • @Patkos It seems sudo hwinfo --short is the equivalent, and it displays IMO prettier output. Unfortunately skips some interesting info (EG, it doesn't display HDD partition sizes). – Tshepang Dec 6 '10 at 16:15
  • 1
    lshw -html > file.html generates a nice HTML formatted version. I find it much easier to go through it in a browser than a console window. – ivanivan Mar 23 '17 at 13:48
  • @ivanivan nice one. Is it new? – Tshepang Mar 24 '17 at 6:11
  • it was an option i had to specifically enable when i built it using gentoo back in 2002-3ish... – ivanivan Mar 25 '17 at 18:46
6

You can use 'lshw'. Install it using 'sudo apt-get install lshw' on Debian and derivatives. There's even a graphical version called lshw-gtk.

5

This is highly variable between unix variants. Check the column for your variant on the Rosetta Stone for Unix.

Under Linux, lshw collects a lot of information scattered in various text files under /proc and /sys.

2

for cpu info

cat /proc/cpuinfo

for disk usage

df -h

for pci cards and buses

lspci

you may find lshw useful

if you need usb devices

lsusb

1

HW Probe — is an option to list all your hardware devices and make diagnostics of operability. It's based on hwinfo, lspci, lsusb, dmidecode and other tools.

Screenshot of the report

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.