In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what are the commands for viewing hardware information under the Linux system, which can be used for reference. Interested friends can refer to them. I hope you will gain a lot after reading this article.
A complete set of commands for viewing hardware information under Linux system
Original 2016-01-25 translator: sonofelice Linux China
Please click here to enter a picture description
There are many commands that can be used to view hardware information on Linux systems. Some commands can only print specific hardware component information such as CPU and memory, while others can view information about a variety of hardware components.
This tutorial gives you a quick look at the most commonly used commands to view information and configuration details on various hardware devices.
Lscpu
The lscpu command can view information about CPU and processing units. This command does not have any other options or other features.
Lscpu
Please click here to enter a picture description
Hdd_info_lscpu
Lspci
Lspci is another command-line tool that can be used to list all PCI buses, as well as details of devices connected to PCI buses, such as VGA adapters, video cards, network adapters, usb ports, SATA controllers, and so on.
Lspci
You can see the output similar to the following figure.
Please click here to enter a picture description
Hdd_info_lspci
You can filter out device-specific information by running the following command:
Lspci-v | grep "VGA"-A 12
Run the above command to see information about the video card similar to the following image.
Please click here to enter a picture description
Hdd_info_lspci_vga
Lshw
Lshw is a general-purpose tool that can list detailed or summary information about a variety of hardware units, such as CPU, memory, usb controller, hard disk, etc. Lshw can extract relevant information from various "/ proc" files.
Lshw-short
You can see the following information by running the above command.
Please click here to enter a picture description
Hdd_info_lshw
Lsscsi
You can list information about scsi/sata devices such as hard drives and optical drives by running the following command:
Lsscsi
You will get output similar to the following.
Please click here to enter a picture description
Hdd_info_lsscsi
Lsusb
The lsusb command lists the details of the USB controller and the devices connected to the USB controller. By default, the lsusb command only prints out outline information. You can print the details of each usb port by using the-v parameter.
Lsusb
You can see the output below.
Please click here to enter a picture description
Hdd_info_lsusb
Inxi
Inxi is a bash script that fetches hardware information from multiple sources and commands on the system and prints out a friendly report that non-technical people can understand.
By default, inxi is not installed on Ubuntu. You can install Inxi by running the following command:
Sudo apt-get install inxi
After installing Inxi, you can get hardware-related information by running the following command:
Inxi-Fx
You can get output similar to the following figure.
Please click here to enter a picture description
Hdd_info_inxi
Df
The df command lists the summary information, mount points, used and available space for different partitions.
You can add the-H parameter when using the df command.
Df-H
You will get the following output.
Please click here to enter a picture description
Hdd_info_df
Free
You can view the total number of idle, and RAM used on the system by using the free command.
Free-m
You will see the following output.
Please click here to enter a picture description
Hdd_info_free
Dmidecode
The dmidecode command is different from other commands. This command reads information from the DMI table in the hardware.
To view information about the processor, run the following command:
Sudo dmidecode-t processor
Please click here to enter a picture description
Hdd_info_dmi_processor
To view memory information, run the following command:
Sudo dmidecode-t memory
Please click here to enter a picture description
Hdd_info_dmi_memory
To view information about bios, run the following command:
Sudo dmidecode-t bios
Please click here to enter a picture description
Hdd_info_dmi_bios
Hdparm
The hdparm command can be used to display information about sata devices such as hard drives.
Sudo hdparm
You can see the following output.
Please click here to enter a picture description
Hdd_info_hdparm
Thank you for reading this article carefully. I hope the article "View hardware information commands under the Linux system" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.