Home > Operation and Maintenance > Linux Operation and Maintenance > How to view device information under linux

How to view device information under linux

王林
Release: 2020-05-16 13:45:57
Original
3987 people have browsed it

How to view device information under linux

View pci device

lspci -v
Copy after login

View cpu information? Answer:

more /proc/cpuinfo
Copy after login

In the cpu information, siblings is the number of logical processors, and cpu cores is the number of cores. When siblings are twice as large as cpu cores, it means that hyper-threading has been turned on; when siblings and cpu cores are consistent, it means that the system Hyper-threading is not supported or hyper-threading is not enabled.

Check the number of cpu

cat /pro/cpuinfo | grep "physical id" | sort | uniq | wc -l
Copy after login

Check the number of cpu cores

cat /proc/cpuinfo | grep "cpu cores"
Copy after login

Check the memory information

more /proc/meminfo
Copy after login

Check the hard disk partition information

fdisk -l
Copy after login

Recommended tutorial: linux tutorial

The above is the detailed content of How to view device information under linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template