redhatlinux安裝及常用查詢

guyuanli發表於2009-06-28

這裡以redhat as 4 u5為例

安裝時的磁碟分割槽

/boot 200M

swap 記憶體的2倍

/ 剩餘的

[@more@]

常用查詢:

1.查詢作業系統版本

uname -a

2.查詢CPU個數及主頻

[oracle@dell2950 proc]$ dmesg | grep CPU | grep ID
CPU0: Physical Processor ID: 0
CPU0: Processor Core ID: 0
CPU0: Initial APIC ID: 0
CPU1: Physical Processor ID: 0
CPU1: Processor Core ID: 1
CPU1: Initial APIC ID: 1
CPU2: Physical Processor ID: 0
CPU2: Processor Core ID: 2
CPU2: Initial APIC ID: 2
CPU3: Physical Processor ID: 0
CPU3: Processor Core ID: 3
CPU3: Initial APIC ID: 3
CPU4: Physical Processor ID: 1
CPU4: Processor Core ID: 4
CPU4: Initial APIC ID: 4
CPU5: Physical Processor ID: 1
CPU5: Processor Core ID: 5
CPU5: Initial APIC ID: 5
CPU6: Physical Processor ID: 1
CPU6: Processor Core ID: 6
CPU6: Initial APIC ID: 6
CPU7: Physical Processor ID: 1
CPU7: Processor Core ID: 7
CPU7: Initial APIC ID: 7
說明是兩個四核的CPU
dmesg |grep CPU
cat /proc/cpuinfo |grep name

3.查詢記憶體資訊

cat /proc/meminfo

4.查詢檔案系統掛載情況

df -h

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7490392/viewspace-1023560/,如需轉載,請註明出處,否則將追究法律責任。

相關文章