MALIBAL Logo

How to Check Hardware Information on Linux

Facebook
Twitter
LinkedIn
Reddit
Email

Getting detailed information about your Linux system’s hardware is essential for troubleshooting, optimizing performance, and upgrading components. In this guide, we will show you how to check hardware information on Linux using various command-line utilities and graphical tools.

Using lshw

lshw (short for “list hardware”) is a command-line utility for Linux systems that provides detailed information about the computer’s hardware components, such as CPU, memory, storage devices, network interfaces, and more. It gathers information from various sources, including the kernel, sysfs, and procfs, to generate a comprehensive report on the system’s hardware.

lshw is designed to be user-friendly and can display the information in various formats, such as plain text, XML, or HTML. It is a helpful tool for troubleshooting, inventory management, or documentation purposes, as it provides a quick overview of the system’s hardware configuration.

Step 1: Open Terminal

Open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for it in the applications menu.

Step 2: Install lshw

On Debian/Ubuntu-based distros, run:

sudo apt install lshw

On Fedora/RPM-based distros, run:

sudo dnf install lshw

On Arch-based distros, run:

sudo pacman -S lshw

Step 3: Run lshw

To display the hardware information, run:

sudo lshw

For a more readable output, run:

sudo lshw -short

Or to generate an HTML file, run:

sudo lshw -html > hardware-info.html 

Using lspci and lsusb

lspci and lsusb are command-line utilities for Linux systems that provide information about the PCI (Peripheral Component Interconnect) devices and USB (Universal Serial Bus) devices connected to the system, respectively.

lspci: This utility lists all the PCI devices on the system, such as graphics cards, network interfaces, sound cards, and other hardware components that use the PCI bus. It can display information like device vendor, device model, and the bus it’s connected to. lspci is particularly useful for identifying hardware components, troubleshooting, and gathering information for driver installation.

lsusb: This utility lists all the USB devices connected to the system, such as keyboards, mice, storage devices, and other peripherals that use the USB interface. It displays information like device vendor, device model, and the USB bus it’s connected to. lsusb is useful for identifying USB devices, troubleshooting, and gathering information for driver installation or configuration.

Both lspci and lsusb are generally pre-installed on most Linux distributions, as they are part of the pciutils and usbutils packages, respectively.

Step 1: Open Terminal

Open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for it in the applications menu.

Step 2: Run lspci and lsusb

To list all PCI devices, such as graphics cards and network interfaces, run: 

lspci

To list all USB devices connected to your system, run:

lsusb

Using dmidecode

dmidecode is a command-line utility for Linux systems that provides information about the computer’s hardware components and system configuration by parsing the Desktop Management Interface (DMI) or System Management BIOS (SMBIOS) data. DMI is a standard that allows system manufacturers to store information about the hardware and its configuration in a standardized format, which can be accessed by software like dmidecode.

dmidecode displays various hardware details, such as system manufacturer, model, BIOS version, memory configuration, CPU details, and more. It is particularly useful for system administrators and technicians who need to gather hardware information for troubleshooting, inventory, or documentation purposes.

Step 1: Open Terminal

Open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for it in the applications menu.

Step 2: Install dmidecode

On Debian/Ubuntu-based distros, run:

sudo apt install dmidecode

On Fedora/RPM-based distros, run:

sudo dnf install dmidecode

On Arch-based distros, run:

sudo pacman -S dmidecode

Step 3: Run dmidecode

To display hardware information, run:

sudo dmidecode

To view specific information, use flags like sudo dmidecode -t system for system information or sudo dmidecode -t memory for memory information.

Using inxi

Inxi is a command-line utility for Linux systems that provides comprehensive system information, including hardware, software, and system configuration details. It is a versatile tool, capable of displaying a wide range of information, such as CPU, memory, storage devices, graphics cards, network interfaces, audio devices, and more.

Inxi is designed to be user-friendly, with options to customize the output to display the information you need. It can be a helpful tool for troubleshooting, as it provides a quick overview of the system configuration and hardware components. 

Step 1: Open Terminal

Open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for it in the applications menu.

Step 2: Install inxi

On Debian/Ubuntu-based distros, run:

sudo apt install inxi

On Fedora/RPM-based distros, run:

sudo dnf install inxi

On Arch-based distros, run:

sudo pacman -S inxi

Step 3: Run inxi

To display the hardware information, run:

inxi -F

For more detailed information, run:

inxi -Fxxxz

Using graphical tools

HardInfo is a graphical hardware information tool for Linux systems. It provides an easy-to-use interface to display detailed information about your computer’s hardware components and system specifications. HardInfo can display information about the processor, memory, storage devices, graphics cards, network interfaces, and other components. It also provides benchmarking capabilities to test your system’s performance. HardInfo is a great tool for users who prefer a graphical user interface (GUI) over command-line utilities for checking hardware information.

Step 1: Open Terminal

Open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for it in the applications menu.

Step 2: Install HardInfo

On Debian/Ubuntu-based distros, run:

sudo apt install hardinfo

On Fedora/RPM-based distros, run:

sudo dnf install hardinfo

On Arch-based distros, run:

sudo pacman -S hardinfo

Step 3: Run HardInfo

After installation, run HardInfo from the application menu or by running:

hardinfo

Conclusion

With these command-line utilities and graphical tools, you can quickly and easily access detailed hardware information on your Linux system. Knowing your hardware components and their specifications can help you make informed decisions when upgrading or troubleshooting your system.

Please Leave Feedback and Corrections in the Comments

More to Explore

Table of Contents

Leave a Reply

Your email address will not be published. Required fields are marked *

What are you looking for?

Type in a question or keyword below

Frequently Asked Questions

Do you have any discounts or coupons?

All of our current discounts and deals are listed under the “Promotions” category at the top of the configuration page for each laptop.

 

What is your return policy?

Any laptop purchased from MALIBAL.COM may be returned or exchanged only in accordance with MALIBAL’S return policy in effect on the date of the invoice or acknowledgment. You must contact us directly before you attempt to return a laptop in order to obtain a Return Material Authorization Number for you to include with your return. You must return the laptop to us in its original packaging and condition with all included manuals, discs, accessories etc.

 

Do you offer any military or student discounts?

We don’t offer any military or student discounts at this time.

 

How much is shipping and tax to my state or country?

Shipping costs are determined by cost of notebook and location. Please add a notebook to the cart and then click the, “Estimated Shipping Charges,” link at the bottom of the cart page. Within the US, there are no taxes outside of Nevada. Nevada residents are subject to 8.10% sales tax. For customers outside the US, you will have to pay your local VAT (Value Added Tax) to customs once the notebook arrives in your country.

 

When is my order shipping?

Laptops usually ship out within 5-7 business days after the order is placed. We also offer rush service (1-3 business days) for $50. Once your laptop ships out we will email the tracking number so that you can see the estimated arrival date. Someone will need to be at the address to sign for the package.

 

How do I check the status of my order?

We will send you emails and texts with status updates as your order progresses through the different stages.

 

How do I cancel an order?

You may cancel an order any time up until it ships. After it ships, you will not be able to cancel it, but will instead have to use our return policy in order to return the laptop for a refund. To cancel an order, simply open a sales ticket or sales chat and give the representative your order information, and they will cancel the order for you and send you confirmation via email and text.

 

How do I make a change to my order?

You may make changes to your order up until it ships. To modify an order, simply open a sales ticket or sales chat and give the representative your order information and specify which changes you want to make. Please note: You cannot change the shipping address on an order.

 

Do you price match?

We do not currently offer any price matching.

 

How do I track my order after it ships?

You can view your tracking status via the order page in your account.

 

Who is MALIBAL?

MALIBAL is an innovative technology company that produces high-performance, custom linux laptops for developers and content creators; mobile workstations for engineers, scientists, video editors, 3D modelers, and animators; and mobile servers for enterprise applications.

On our site, you will find information about the best custom linux laptops, such as our Aon S1 and Aon L1 models, our customers, new articles, latest news, guides, features, and more.