Difference between revisions of "Sys Linux"

From ElectroDragon
Jump to navigation Jump to search
(Created page with "# 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep "cpu cores"| uniq...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
== CPU ==
 
# 查看物理CPU个数
 
# 查看物理CPU个数
 
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
 
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
Line 7: Line 8:
 
# 查看逻辑CPU的个数
 
# 查看逻辑CPU的个数
 
cat /proc/cpuinfo| grep "processor"| wc -l
 
cat /proc/cpuinfo| grep "processor"| wc -l
 
+
== Version ==
 +
* cat /etc/issue
 +
* lsb_release -a
 
[[category: Linux]]
 
[[category: Linux]]

Latest revision as of 10:03, 1 December 2019

CPU

  1. 查看物理CPU个数

cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

  1. 查看每个物理CPU中core的个数(即核数)

cat /proc/cpuinfo| grep "cpu cores"| uniq

  1. 查看逻辑CPU的个数

cat /proc/cpuinfo| grep "processor"| wc -l

Version

  • cat /etc/issue
  • lsb_release -a