查看系统内核版本命令:
[root@SYS3 ~]# uname -a
Linux SYS3 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
查看系统版本
[root@SYS3 ~]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
查看内核版本gcc版本
[root@SYS3 /]# more /proc/version
Linux version 2.6.18-53.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP
Wed Oct 10 16:34:19 EDT 2007
查看cpu 信息
[root@SYS3 /]# grep "model name" /proc/cpuinfo
model name : Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
[root@SYS3 /]# more /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
stepping : 8
cpu MHz : 1866.663
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2
ss syscall nx lm constant_tsc up pni ds_cpl cx16 lahf_lm
bogomips : 3741.81
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
查看cpu 的位数
[root@SYS3 /]# getconf LONG_BIT
64
查看内存信息
[root@SYS3 /]# more /proc/meminfoMemTotal: 1027180 kBMemFree: 79432 kBBuffers: 191460 kBCached: 570760 kBSwapCached: 0 kBActive: 402036 kBInactive: 440556 kBHighTotal: 0 kBHighFree: 0 kBLowTotal: 1027180 kBLowFree: 79432 kBSwapTotal: 2031608 kBSwapFree: 2031608 kBDirty: 4 kBWriteback: 0 kBAnonPages: 80348 kBMapped: 21416 kBSlab: 83604 kBPageTables: 7528 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 2545196 kBCommitted_AS: 172384 kBVmallocTotal: 34359738367 kBVmallocUsed: 1936 kBVmallocChunk: 34359736391 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0Hugepagesize: 2048 kB