Linux常用命令备忘

Linux下查看CPU信息(如:CPU个数以及CPU内核)

# cat /proc/cpuinfo                  # CPU model

查看CPU的个数:
more /proc/cpuinfo |grep “physical id”|uniq|wc -l

查看单个CPU内核个数(假设cpu配置相同)
more /proc/cpuinfo |grep “physical id”|grep “0”|wc -l

您可能还喜欢...