首页
Loading
您有软件应用有使用问题,留言, 请让我们知道。谢谢
您所在的位置:首页 > 系统应用 > Linux > 正文

Linux怎么获取CPU数量

作者: 来源:原创 日期:2016/9/9 17:18:29   加入收藏 评论:0 标签:Linux

命令

① 查看物理CPU的个数
#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l  
4  
② 查看逻辑CPU的个数
#cat /proc/cpuinfo |grep "processor"|wc -l  
24  
③ 查看CPU是几核
#cat /proc/cpuinfo |grep "cores"|uniq  
8



本文网址:http://www.ruanjianyingyong.com/html/Linux/96.html
读完这篇文章后,您心情如何?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
更多>>网友评论
发表评论
编辑推荐
  • 没有资料