lscpu: Display cpu architecture information
Total number of processor cores = Number of processors * per The number of cores per processor * the number of threads supported by each core. That is: CPU(s) = Socket(s) * Core(s) * Thread(s).
(Recommended tutorial: linux tutorial)
cat /proc/cpuinfo: View CPU details
If output like this, there will be a lot of content and it will look a little confusing. We can use several commands to view the information we want to know:
# 查看物理CPU个数 cat /proc/cpuinfo | grep "physical id" | sort | uniq # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo | grep "cpu cores" | uniq # 查看每个物理CPU中线程的个数 cat /proc/cpuinfo | grep "siblings" | uniq # 查看逻辑CPU的个数 cat /proc/cpuinfo| grep "processor" # 查看CPU型号 cat /proc/cpuinfo | grep "model name" | uniq
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of How to check system configuration in linux. For more information, please follow other related articles on the PHP Chinese website!