Probing for hardware information
Command Line – Hardware Information

© Lead Image © Pei Ling Hoo, 123RF.com
A quick guide to 10 command-line tools to help you find hardware information.
If you need hardware information, where do you turn? You might have the box and a Quick Start Guide, but chances are they're lost in the back of some closet. More detailed information is probably available online but is not much use without the model number. The simplest source is your system itself, which has plenty of commands – including basic ones such as grep
and ls
– to pry out the information you need from the niche where it resides. Many echo the basic ls
command in their name, and many have two or more levels of verbosity, each one giving more detailed information than the last. But whatever the name or structure of the command, each unlocks an often untapped cache of information. Most of the time, you will want to pipe the commands through less
(adding | less
at the end of the command), and in some cases you will need to log in as root to access the information.
uname
Using uname
provides a high-level view of both the hardware and software on the system. With the -a
option, it gives the following information in this order: kernel name, host name, kernel release, kernel version (such as Debian 4.19.194-3 (2021-07-18)), hardware type, hardware architecture, and operating system. Each of these pieces of information can be displayed by itself with a specific option of its own, but because the options often have no relation to the information, it is easier to simply remember uname -a
. With no option, uname
simply lists the operating system (Figure 1).
lspci
For a brief summary of all PCI buses, type the bare command. For more detail, add a level of verbosity from -v
to -vvv
. For hexadecimal dumps, there are also four levels of detail, from -x
to -xxxx
.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.