Get the App
SLTechnology News&Howtos  ›  Servers  › 

Hardware information query using the hwinfo command of linux

Shulou Source: shulou.com Published: 2022-06-02 20:09:05 09月22日 Update

This article will explain in detail about the use of linux hwinfo command hardware information query, the editor thinks it is very practical, so share it with you as a reference, I hope you can get something after reading this article.

The English full name of the hwinfo command is "Hardware Information". This command is extremely convenient and powerful. With this command, we don't have to look up hardware information on the computer fuselage or instructions one by one.

Hwinfo is a very widely used hardware information query command, similar to lshw, it can also report the hardware information of multiple components in detail or summary, but the difference is that it can sometimes give more information than lshw.

Many command lines that detect hardware information need to use root permissions. So before running the command, you'd better switch to the administrator privileges account.

Syntax format: hwinfo [parameters]

Common parameters:

Reference example

Displays all hardware information:

[root@linuxcool ~] # hwinfo

Display brief information:

[root@linuxcool] # hwinfo-- short

View cup information:

[root@linuxcool] # hwinfo-- short-- cpu

View the Nic information:

[root@linuxcool] # hwinfo-- short-- netcard

View hard drive information:

[root@linuxcool] # hwinfo-- short-- storage

View usb device information:

[root@linuxcool] # hwinfo-- short-- usb

Record the output information to a file:

[root@linuxcool ~] # hwinfo-- all-- short-- log hardware_info.log hardware information about using linux hwinfo commands is shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Information commands hardware queries more parameters permissions articles references different good practical powerful full name content multiple examples commonly used reports files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info NVidia Xiaomi MySQL Docker