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

How to view device information under linux

王林
王林Original
2020-05-16 13:45:573905browse

How to view device information under linux

View pci device

lspci -v

View cpu information? Answer:

more /proc/cpuinfo

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

Check the number of cpu cores

cat /proc/cpuinfo | grep "cpu cores"

Check the memory information

more /proc/meminfo

Check the hard disk partition information

fdisk -l

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!

Statement:
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