- Linux List Hardware Information Command
- Method #1 dmidecode tool
- Method #2: lshw too
- List hardware
- ls* Commands
- 10 Commands to Collect System and Hardware Info in Linux
- 1. How to View Linux System Information
- 2. How to View Linux System Hardware Information
- 3. How to View Linux CPU Information
- 4. How to Collect Linux Block Device Information
- 5. How to Print USB Controllers Information
- 6. How to Print PCI Devices Information
- 7. How to Print SCSI Devices Information
- 8. How to Print Information about SATA Devices
- 9. How to Check Linux File System Information
- 10. How to Check Linux Hardware Components Info
- Summary
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- 5 GUI Tools to See Hardware Information in Ubuntu/Linux
- 1. I-Nex
- 2. Hardinfo
- 3. Sysinfo
- 4. lshw-gtk (Hardware Lister)
- 5. KInfoCenter (KDE Info Center)
- Author: Jaber Al Nahian
Linux List Hardware Information Command
- dmidecode command – See a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision.
Tutorial details Difficulty level Intermediate Root privileges Yes Requirements lshw/dmidecode Est. reading time 10m - lshw command – list hardware command.
- ls* commands.
- /proc/ file system
Method #1 dmidecode tool
Use yum or apt-get command to install dmidecode tool. Once installed, type the following command to list hardware information:
# dmidecode
Sample outputs:
Method #2: lshw too
This tool an report exact memory configuration, firmware version, main board configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines. It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB.
NOTE: Install lshw either using ‘ apt-get install lshw ‘ (Debian and Friends) or ‘ yum instal lshw ‘ (Red Hat and Friends). YMMV.
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
List hardware
Type the lshw at a shell prompt:
# lshw | more
OR
# lshw
Sample outputs:
To lists hardware in a compact format, type:
# lshw -short
Sample outputs:
To lists all disks and storage controllers in the system, type:
# lshw -class disk -class storage
To lists all network interfaces in HTML format, enter:
# lshw -html -class network
ls* Commands
Recommend readings
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Источник
10 Commands to Collect System and Hardware Info in Linux
It is always a good practice to know the hardware components of your Linux system is running on, this helps you to deal with compatibility issues when it comes to installing packages, drivers on your system using yum, dnf, or apt.
10 Commands to Check Hardware and System Information in Linux
Therefore in these tips and tricks series, we shall look at some useful commands that can help you to extract information about your Linux system and hardware components.
1. How to View Linux System Information
To know only the system name, you can use the uname command without any switch that will print system information or the uname -s command will print the kernel name of your system.
To view your network hostname, use the ‘-n’ switch with the uname command as shown.
To get information about kernel-version, use the ‘-v’ switch.
To get the information about your kernel release, use the ‘-r’ switch.
To print your machine hardware name, use the ‘-m’ switch:
All this information can be printed at once by running the ‘uname -a’ command as shown below.
2. How to View Linux System Hardware Information
Here you can use the lshw tool to gather vast information about your hardware components such as cpu, disks, memory, usb controllers, etc.
lshw is a relatively small tool and there are few options that you can use with it while extracting information. The information provided by lshw was gathered from different /proc files.
Note: Do remember that the lshw command is executed by the superuser (root) or sudo user.
To print information about your Linux system hardware, run this command.
You can print a summary of your hardware information by using the -short option.
If you wish to generate output as an html file, you can use the option -html.
Generate Linux Hardware Information in HTML
3. How to View Linux CPU Information
To view information about your CPU, use the lscpu command as it shows information about your CPU architecture such as a number of CPUs, cores, CPU family model, CPU caches, threads, etc from sysfs and /proc/cpuinfo.
4. How to Collect Linux Block Device Information
Block devices are storage devices such as hard disks, flash drives, etc. lsblk command is used to report information about block devices as follows.
If you want to view all block devices on your system then include the -a option.
5. How to Print USB Controllers Information
The lsusb command is used to report information about USB controllers and all the devices that are connected to them.
You can use the -v option to generate detailed information about each USB device.
6. How to Print PCI Devices Information
PCI devices may include usb ports, graphics cards, network adapters, etc. The lspci tool is used to generate information concerning all PCI controllers on your system plus the devices that are connected to them.
To print information about PCI devices run the following command.
Use the -t option to produce output in a tree format.
Use the -v option to produce detailed information about each connected device.
7. How to Print SCSI Devices Information
To view all your scsi/sata devices, use the lsscsi command as follows. If you do not have the lsscsi tool installed, run the following command to install it.
After installation, run the lsscsi command as shown:
Use the -s option to show device sizes.
8. How to Print Information about SATA Devices
You can find some information about sata devices on your system as follows using the hdparm utility. In the example below, I used the block device /dev/sda1 which is the hard disk on my system.
To print information about device geometry in terms of cylinders, heads, sectors, size, and the starting offset of the device, use the -g option.
9. How to Check Linux File System Information
To gather information about file system partitions, you can use the fdisk command. Although the main functionality of the fdisk command is to modify file system partitions, it can also be used to view information about the different partitions on your file system.
You can print partition information as follows. Remember to run the command as a superuser or else you may not see any output.
10. How to Check Linux Hardware Components Info
You can also use the dmidecode utility to extract hardware information by reading data from the DMI tables.
To print information about memory, run this command as a superuser.
To print information about the system, run this command.
To print information about BIOS, run this command.
To print information about the processor, run this command.
Summary
There are many other ways you can use to obtain information about your system hardware components. Most of these commands use files in the /proc directory to extract system information.
Hope you find these tips and tricks useful and remember to post a comment in case you want to add more information to this or if you face any difficulties in using any of the commands. Remember to always stay connected to Tecmint.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Источник
5 GUI Tools to See Hardware Information in Ubuntu/Linux
Here are 5 best graphical tools to check your Linux hardware information without using harsh commands.
Checking hardware (CPU, motherboard, process, etc.) information is one of the most common and important tasks we do in our computers. Viewing details of physical components of a computer lets us get idea about a computer’s configuration. It let’s us assume which physical system we are working with, as well as having idea how good a machine would perform and which operating systems and drivers are applicable for it. In one word, hardware info is an obvious part of the details a user should know about his/her system.
In Windows OS, the most general way to see hardware configuration is to right-click on My Computer icon and then clicking Properties from context menu. This provides a minimal information. For more detailed view, Windows Device Manger and System Information utilities can be used. As third party tools, Speccy and CPU-Z seem to be very popular, though the number of system/hardware information tool for Windows is endless.
As of Linux OS, most of the tools you get to see system information are command-line based. This means, once you install those tools, you need to type-in commands in Terminal to get output about installed hardware units. This is really a boring procedure and not convenient to anyone.
I have searched for programs that present hardware specifications in Linux system without requiring any command to input, and found a plenty of utilities. I have selected 5 best ones to show here that works out of the box. You may search for the following tools in your software store (if you have one in your Linux) for jump installation.
1. I-Nex
Probably the best CPU-Z alternative for Linux. I-Nex resembles CPU-Z’s UI. And you would probably like it.
I-Nex shows detailed information on your CPU, Graphics(GPU), Motherboard, Audio hardware and many more in very beautiful way. Major hardware units have their one tab. Every tab contains the device name/model, manufacturer, driver info, and other available data. The presentation provided here is very clear and easy to understand. It even lets you generate customizable report on the whole system. It lets you take screenshot too.
Along with hardware, in also shows useful details on your operating system, such as, Linux distro name, version, GCC version, X.Org version, etc. There’s also a tab for Kernel information.
To install I-Nex on Ubuntu/Mint or any derivatives, type the following commands one after another at each prompt in Terminal.
For Arch Linux, Fedora, openSUSE, Manjaro and other derivatives, here’s the official guide to install.
2. Hardinfo
HardInfo is a hardware analysis, system benchmark and report generator tool that can be found pre-installed in Linux Mint. It lists all hardware units vertically on left side of the program. You need to click on the name of a device to reveal details of that component. The Summary entry shows overview of your whole system in a short form.
Besides generating report in HTML, you can compare your system with other systems with its benchmarking tools from bottom.
To install Hardinfo, run the following commands into Terminal in Debian/Ubuntu/Mint and its derivatives.
On Fedora, use the following command:
3. Sysinfo
A lightweight program that shows your hardware information in simple way. Unlike above programs, it doesn’t show much information.
Use the following command to install in Ubuntu/Mint:
4. lshw-gtk (Hardware Lister)
This the graphical version the popular command-line hardware info tool lshw. Use Refresh from toolbar if you see blank window. Though it looks so simple, the information it provides are really extensive and informative. It also features export function with XML, HTML and plain text support. Use Save button to export your report.
Installation command for Ubuntu/Mint:
Then type lshw-gtk in Terminal to launch it.
For Fedora, use the following command:
Use lshw-gui command in Terminal to launch it.
5. KInfoCenter (KDE Info Center)
KInfoCenter is a part of KDE desktop environment. But it can be installed on other desktops too. This utility provides various information that are unique to your hardware. You get information on PCI, Network Interfaces, X Server, USB Devices, IO Ports, etc. along with main hardware units. If you have a Linux with KDE desktop, you may already have this installed.
Install KInfoCenter in Ubuntu/Mint using following command:
To install in Fedora, use following command:
On both OS, type kinfocenter in Terminal to launch it.
I personally like I-Nex. It’s sleek design and faster startup beats anything. Let us know which hardware info utility you are using.
Author: Jaber Al Nahian
Jaber is a Programmer and Tech Enthusiast Geek from Dhaka, Bangladesh. He is the founder and Chief-Editor of TechGainer. While he is away from his keyboard, either he’s fishing or messing with wildlife. In case, you can contact him at rijans[at]techgainer[dot]com.
Источник