Linux下查看硬體設定的相關命令

來源:互聯網
上載者:User

常用命令整理如下:

查看主板的序號: dmidecode | grep -i ’serial number’

用硬體檢測程式kuduz探測新硬體:service kudzu start ( or restart)

查看CPU資訊:cat /proc/cpuinfo [dmesg | grep -i 'cpu'][dmidecode -t processor]

查看記憶體資訊:cat /proc/meminfo [free -m][vmstat]

查看板卡資訊:cat /proc/pci

查看顯卡/音效卡資訊:lspci |grep -i ‘VGA’[dmesg | grep -i 'VGA']

查看網卡資訊:dmesg | grep -i ‘eth’[cat /etc/sysconfig/hwconf | grep -i eth][lspci | grep -i 'eth']

<!--more-->

查看PCI資訊:lspci (相比cat /proc/pci更直觀)

查看USB裝置:cat /proc/bus/usb/devices

查看鍵盤和滑鼠:cat /proc/bus/input/devices

查看系統硬碟資訊和使用方式:fdisk & disk – l & df

查看各裝置的插斷要求(IRQ):cat /proc/interrupts

查看系統體繫結構:uname -a

查看及啟動系統的32位或64位核心模式:isalist –v [isainfo –v][isainfo –b]

dmidecode查看硬體資訊,包括bios、cpu、記憶體等資訊

測定當前的顯示器重新整理頻率:/usr/sbin/ffbconfig –rev \?

查看系統配置:/usr/platform/sun4u/sbin/prtdiag –v

查看當前系統中已經應用的補丁:showrev –p

顯示當前的運行層級:who –rH

查看當前的bind版本資訊:nslookup –class=chaos –q=txt version.bind

dmesg | more 查看硬體資訊

lspci 顯示外設資訊, 如usb,網卡等資訊

lsnod 查看已載入的驅動

lshw

psrinfo -v 查看當前處理器的類型和速度(主頻)

prtconf -v 列印當前的OBP版本號碼

iostat –E 查看硬碟物理資訊(vendor, RPM, Capacity)

prtvtoc /dev/rdsk/c0t0d0s 查看磁碟的幾何參數和分區資訊

df –F ufs –o i 顯示已經使用和未使用的i-node數目

isalist –v

對於“/proc”中檔案可使用檔案查看命令瀏覽其內容,檔案中包含系統特定資訊:

Cpuinfo 主機CPU資訊

Dma 主機DMA通道資訊

Filesystems 檔案系統資訊

Interrupts 主機中斷資訊

Ioprots 主機I/O連接埠號碼資訊

Meninfo 主機記憶體資訊

Version Linux記憶體版本資訊

備忘: proc – process information pseudo-filesystem 進程資訊偽裝檔案系統

聯繫我們

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