In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to view hardware information in Linux". In daily operation, I believe many people have doubts about how to view hardware information in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to view hardware information in Linux". Next, please follow the editor to study!
Lscpu
The lscpu command can view information about CPU and processing units. This command does not have any other options or other features.
Lscpu runs the command and sees the following output:
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:
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:
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 can see the following information by running the above command:
Lsscsi
You can list information about scsi/sata devices such as hard drives and optical drives by running the following command:
Lsscsi will get output similar to the following:
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 can see the following output
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
Free
You can view the total number of idle, and RAM used on the system by using the free command.
Free-m will see the following output.
Hdparm
The hdparm command can be used to display information about sata devices such as hard drives.
Sudo hdparm can see the following output:
At this point, the study on "how to view hardware information in Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.