CentOS查看作業系統資訊(重要)

來源:互聯網
上載者:User

標籤:

1、查看物理CPU的個數

[[email protected] ~]# cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
1

2、查看邏輯CPU的個數

[[email protected] ~]# cat /proc/cpuinfo |grep "processor"|wc -l
4

3、查看CPU是幾核(即,核心數)

[[email protected] ~]# cat /proc/cpuinfo |grep "cores"|uniq
cpu cores    : 4

4、查看CPU的主頻

[[email protected] ~]# cat /proc/cpuinfo |grep MHz|uniq
cpu MHz        : 2499.982

5、當前作業系統核心資訊

[[email protected] ~]# uname -a
Linux MysqlCluster01 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

6、當前作業系統發行版資訊

[[email protected] ~]# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

7、記憶體使用量情況

[[email protected] ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          7863       2738       5125          0        141        835
-/+ buffers/cache:       1761       6102
Swap:         3967          0       3967

 

其他命令:

[[email protected] ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      4  AMD Opteron(tm) Processor 6380  

看到有8個邏輯CPU, 也知道了CPU型號

 

[[email protected] ~]# getconf LONG_BIT
64

說明當前CPU運行在64bit模式下

 

[[email protected] ~]# cat /proc/cpuinfo | grep flags | grep ‘ lm ‘ | wc -l
4

結果大於0, 說明支援64bit計算. lm指long mode, 支援lm則是64bit

CentOS查看作業系統資訊(重要)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.