# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
(看到有8個邏輯CPU, 也知道了CPU型號)html
# cat /proc/cpuinfo | grep physical | uniq -c 4 physical id : 0 4 physical id : 1
(說明其實是兩顆4核的CPU)linux
# getconf LONG_BIT 32
(說明當前CPU運行在32bit模式下, 但不表明CPU不支持64bit)ide
# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l 8
(結果大於0, 說明支持64bit計算. lm指long mode, 支持lm則是64bit)ui
再完整看cpu詳細信息, 不過大部分咱們都不關心而已.操作系統
# dmidecode | grep 'Processor Information' 查看內存信息 # cat /proc/meminfo # uname -a Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(查看當前操做系統內核信息)code
# cat /etc/issue | grep Linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
(查看當前操做系統發行版信息)orm
查看機器型號htm
# dmidecode | grep "Product Name"
查看網卡信息內存
# dmesg | grep -i eth