Home > Article > Operation and Maintenance > 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!