Command list for viewing hardware information in Linux

Source: Internet
Author: User

Command list for viewing hardware information in Linux

Many commands can be used to view hardware information on Linux systems. Some commands can only print the specific hardware component information such as CPU and memory, and others can view the information of multiple hardware components.

This tutorial will show you the most common commands for viewing information about various hardware devices and configuration details.

 

Lscpu

lscpuCommand to view the CPU and processing unit information. This command does not have any other options or functions.

  1. lscpu

Run the command to view the following output:

Hdd_info_lscpu

 

Lspci

lspciIs another command line tool that can be used to list all the PCI bus and the details of the devices connected to the PCI bus, for example, VGA adapter, video card, network adapter, usb port, and SATA controller.

  1. lspci

You can see similar output information.

Hdd_info_lspci

You can run the following command to filter out the information of a specific device:

lspci -v | grep "VGA" -A 12

Run the preceding command to view information about the video card.

Hdd_info_lspci_vga

 

Lshw

lshwIs a common tool that lists detailed or summary information about multiple hardware units, such as CPU, memory, usb controller, and hard disk.lshwThe ability to extract relevant information from each "/proc" file.

  1. lshw -short

Run the preceding command to view the following information.

Hdd_info_lshw

 

Lsscsi

Run the following command to list information about scsi/sata devices such as hard disks and optical drives:

  1. lsscsi

The output is similar to the following.

Hdd_info_lsscsi

 

Lsusb

lsusbCommand to list detailed information about the USB controller and the device connected to the USB controller. By default,lsusbCommand to print only the summary information. You can use the-v parameter to print the details of each usb port.

  1. lsusb

The following output is displayed.

Hdd_info_lsusb

 

Inxi

InxiIt is a bash script that can obtain hardware information from multiple sources and commands of the system, and print a friendly report that non-technical personnel can understand.

By default, Ubuntu is not installed.inxi. You can run the following command to installInxi:

  1. sudoapt-get install inxi

After installationInxiThen, run the following command to obtain the hardware information:

  1. inxi -Fx

Similar output can be obtained.

Hdd_info_inxi

 

Df

dfCommand to list the summary, mount points, used and available space of different partitions.

You can usedfAdd-HParameters.

  1. df-H

The following output is displayed.

Hdd_info_df

 

Free

UsefreeCommand to view the total number of idle and RAM resources used in the system.

  1. free -m

The following output is displayed.

Hdd_info_free

 

Dmidecode

dmidecodeCommands are different from other commands. This command reads information from the DMI table in the hardware.

To view the processor information, run the following command:

  1. sudo dmidecode -t processor

Hdd_info_dmi_processor

To view the memory information, run the following command:

  1. sudo dmidecode -t memory

Hdd_info_dmi_memory

To view the bios information, run the following command:

  1. sudo dmidecode -t bios

Hdd_info_dmi_bios

 

Hdparm

hdparmCommand can be used to display information about sata devices such as hard disks.

  1. sudohdparm

The following output is displayed.

Hdd_info_hdparm

 

Summary

Each Command has a different way to obtain hardware information. You can try different methods to view specific hardware information. All the above command line tools can be used in most Linux releases and can be easily obtained and installed from the repository.

Via: https://www.maketecheasier.com/check-hardware-information-linux/

Author: Hitesh Jethva Translator: sonofelice Proofreader: wxy

This article was originally compiled by LCTT and launched with the honor of Linux in China

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.