Home  >  Article  >  Operation and Maintenance  >  How to check system configuration in linux

How to check system configuration in linux

王林
王林Original
2020-03-11 15:21:566499browse

How to check system configuration in linux

lscpu: Display cpu architecture information

How to check system configuration in linux

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

How to check system configuration in linux

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!

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
Previous article:How to compress in linuxNext article:How to compress in linux