1,檢視CPU資訊:cat /proc/cpuinfo
2,查看板卡資訊:cat /proc/pci
3,檢視USB裝置:cat /proc/bus/usb/devices
4,檢視PCI資訊:lspci (相比cat /proc/pci更直觀)
5,檢視記憶體資訊:cat /proc/meminfo
6,檢視鍵盤和滑鼠:cat /proc/bus/input/devices
7,檢視系統硬碟資訊和使用情況:fdisk & disk – l & df
8,用硬體檢測程式kuduz探測新硬體:service kudzu start ( or restart)
9,檢視各裝置的中斷請求(IRQ):cat /proc/interrupts
10,檢視啟動硬體檢測資訊日誌:dmesg more /var/log/dmesguname -auptime
幾種檢視Linux版本資訊的方法:
1: uname -a
2: cat /proc/version
3: cat /etc/issue
4: lsb_release -a
5:cat /etc/redhat-release
6:rpm -q redhat-release
詳解 lsb_release -a
登入到伺服器執行 lsb_release -a ,即可列出所有版本資訊,例如:程式碼如下:
[hacder@NBCTC-14-15 ~]$ lsb_release -a
LSB Version: :core-3:1-amd64:core-3:1-ia32:core-3:1-noarch:graphics-3:1-amd64:graphics-3:1-ia32:graphics-3:1-noarch
Distributor ID: CentOS
Description: CentOS release 5:3 (Final)
Release: 5:3
Codename: Final
這個命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。
1,檢視CPU資訊:cat /proc/cpuinfo
2,查看板卡資訊:cat /proc/pci
3,檢視USB裝置:cat /proc/bus/usb/devices
4,檢視PCI資訊:lspci (相比cat /proc/pci更直觀)
5,檢視記憶體資訊:cat /proc/meminfo
6,檢視鍵盤和滑鼠:cat /proc/bus/input/devices
7,檢視系統硬碟資訊和使用情況:fdisk & disk – l & df
8,用硬體檢測程式kuduz探測新硬體:service kudzu start ( or restart)
9,檢視各裝置的中斷請求(IRQ):cat /proc/interrupts
10,檢視啟動硬體檢測資訊日誌:dmesg more /var/log/dmesguname -auptime
幾種檢視Linux版本資訊的方法:
1: uname -a
2: cat /proc/version
3: cat /etc/issue
4: lsb_release -a
5:cat /etc/redhat-release
6:rpm -q redhat-release
詳解 lsb_release -a
登入到伺服器執行 lsb_release -a ,即可列出所有版本資訊,例如:程式碼如下:
[hacder@NBCTC-14-15 ~]$ lsb_release -a
LSB Version: :core-3:1-amd64:core-3:1-ia32:core-3:1-noarch:graphics-3:1-amd64:graphics-3:1-ia32:graphics-3:1-noarch
Distributor ID: CentOS
Description: CentOS release 5:3 (Final)
Release: 5:3
Codename: Final
這個命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。