One: View CPU
[Email protected]/]# More/proc/cpuinfo | grep "model name"
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
[[email protected]/]# grep "model name"/proc/cpuinfo
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Model Name:intel (R) Xeon (r) CPU X3220 @ 2.40GHz
[[email protected]/]# grep "model name"/proc/cpuinfo | Cut-f2-d:
Intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Intel (R) Xeon (r) CPU X3220 @ 2.40GHz
Two: View memory
[[email protected]/]# grep memtotal/proc/meminfo
memtotal:614400 KB
[Email protected]/]# free-g
[Email protected]/]# free-m
Total used free shared buffers Cached
mem:600 23 576 0 0 0
-/+ buffers/cache:23 576
swap:0 0 0
[Email protected]/]# free-m |grep "Mem" | awk ' {print $} '
600[[email protected]/] #grep Memtotal/proc/meminfo | Cut-f2-d:
Kb
(k| k|m| M) with k|kb|m| MB display, corresponding conversion (1000|1024|1000000|1048576)
Three: View the number of CPU bits (+ or 64)
[Email protected]/]# getconf long_bit
Four: View Linux versions
[Email protected]/]# more/etc/redhat-release
CentOS Release 5 (Final)
[Email protected]/]# more/etc/issue
CentOS Release 5 (Final)
Kernel \ r on an \m
[Email protected]/]# more/proc/version
Linux version 2.6.18-92.1.18.el5.028stab060.2pae ([[email Protected]][email protected][/email]) (GC
C Version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Jan 12:31:30 MSK 2009
V: View kernel version
[Email protected]/]# uname-r
2.6.18-92.1.18.el5.028stab060.2pae
[Email protected]/]# uname-a
Linux srv.eddiechen.cn 2.6.18-92.1.18.el5.028stab060.2pae #1 SMP Tue Jan 12:31:30 MSK-i686 i686 i386 Gnu/linux
VI: View time zone
[Email protected]/]# date-r
Wed, Feb 2009 02:20:50 +0000
[Ro[email protected]/]# Mv/etc/localtime/etc/localtime.save
[Email protected]/]# Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime
[Email protected]/]# date-r
Wed, Feb 2009 10:24:26 +0800
Seven: Host name
[Email protected]/]# hostname
srv.eddiechen.cn
Eight: View selinux status
[Email protected]/]# Sestatus
SELinux status:disabled
Nine: Network
Ip
[Email protected]/]# Ifconfig | grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' | Cut-d:-f2 | awk ' {print '} '
207.154.202.216
Gateway
[Email protected]/]# cat/etc/sysconfig/network
networking= "Yes"
Gateway= "192.0.2.1"
Hostname= "srv.eddiechen.cn"
Dns
[Email protected]/]# cat/etc/resolv.conf
NameServer 208.74.168.131
NameServer 208.74.168.132
NameServer 4.2.2.1
Ten: Packages that have already been installed
[Email protected]/]# Rpm-qa | Wc-l
[email protected]/]# Yum List installed | Wc-l
11: Disks and partitions
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/dev/simfs 10G 353M 9.7G 4%/
[Email protected]/]# Du-sh
353M
[Email protected]/]# Du/etc-sh
4.6m/etc
Linux View System configuration information