Difference between revisions of "Sys Linux"

From ElectroDragon
Jump to navigation Jump to search
Line 11: Line 11:
* cat /etc/issue
* cat /etc/issue
* lsb_release -a
* lsb_release -a
[[category: Linux]]
[[category: Linux Config]]

Latest revision as of 10:33, 31 January 2020


  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


  • cat /etc/issue
  • lsb_release -a