Linux 查看機器配置資訊

來源:互聯網
上載者:User


#cat /proc/cpuinfo

processor 從0開始計數,flags 如果有ht 說明和支援超執行緒技術(附1)。

#cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c       
1  Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz

查看CPU資訊,這裡資訊顯示只有1個邏輯CPU,型號為 E2180

#cat /proc/cpuinfo | grep processor | wc -l      
1

查看CPU的個數

#cat /proc/cpuinfo | grep physical | uniq -c   
#getconf LONG_BIT     
  
32

說明當前CPU運行在32bit模式下,但不代表CPU 不支援64bit

# cat /proc/cpuinfo | grep flags | grep "lm" | wc -l   
0

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

#cat /proc/cpuinfo | grep -i "model name" 
model name : Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz  

#cat /proc/cpuinfo | grep -i "cpu cores"   
#cat /proc/cpuinfo | grep -i "cache size" 

cache size : 1024 KB  

#dmidecode | gerp "Processor Information"

查看CPU資訊

#dmicode | grep CPU  
#dmidecode | grep  Proc

#cat /proc/meminfo

查看記憶體資訊

#cat /proc/meminfo | grep -i memtotal 
MemTotal:      1035292 kB

#dmesg | grep hd

查看硬碟資訊

#uname -a

查看當前作業系統的核心

#cat /etc/issue | grep Linux

查看當前作業系統發行版本資訊

#dmidecode | grep "Product Name"

查看機器資訊

#dmesg | grep -i eth

查看網卡資訊

附1 : 超執行緒 HT Hyper-Threading
超執行緒技術是利用特殊的硬體指令,把多執行緒器內部的兩個邏輯核心類比成兩個物理晶片,從而使單個處理器就能“享用”線程級的並行計算的處理器技術。多線程技術可以在支援多線程的作業系統和軟體上,有效增強處理器在多任務、多執行緒上的處理能力。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.