基於Linux系統中查看硬體等資訊的方法詳解

來源:互聯網
上載者:User

本文介紹下,linux下查看硬體資訊的命令與方法,包括主板序號、cpu資訊、記憶體資訊、硬碟資訊、網卡資訊等。
1,主板資訊.查看主板的序號  
#使用命令
dmidecode | grep -i 'serial number'
#查看板卡資訊
cat /proc/pci 
2,cpu資訊
#通過/proc檔案系統
1) cat /proc/cpuinfo
#通過查看開機資訊
2) dmesg | grep -i 'cpu'
#
3)dmidecode -t processor
3,在linux系統中查看硬碟資訊,常用的命令為fdisk,df,du,hdparm,dmesg。
#查看分區情況
fdisk -l
#查看大小情況
df -h
#查看使用方式
du -h
#
hdparm -I /dev/sda
#
dmesg | grep sda
4,記憶體資訊
1) cat /proc/meminfo
2) dmesg | grep mem
3) free -m
4) vmstat
5) dmidecode | grep -i mem
5,網卡資訊
1) dmesg | grep -i 'eth'
2) cat /etc/sysconfig/hwconf | grep -i eth
3) lspci | grep -i 'eth'
6,滑鼠鍵盤和USB資訊
查看鍵盤和滑鼠:cat /proc/bus/input/devices
查看USB裝置:cat /proc/bus/usb/devices
查看各裝置的插斷要求(IRQ):cat /proc/interrupts
7,顯卡資訊
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
8,音效卡資訊
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
9,其他命令
.用硬體檢測程式kuduz探測新硬體:service kudzu start ( or restart)
.dmesg (查看所有啟動時檢測到的硬體資訊)
.lspci (顯示外設資訊,如usb,網卡等資訊)
.cat /etc/sysconfig/hwconf
.mpstat
10,需要手動安裝的工具
lshw,hwinfo,hal-device-manager
相關文章

聯繫我們

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