查看linux 主机系统的基本信息
一、 硬件信息
1. CPU
a. Cat /proc/cpuinfo
例:
[root@linux victor]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Celeron(R) M processor 1.50GHz
stepping : 8
cpu MHz : 1500.000
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts
bogomips : 2999.83
clflush size : 64
power management:
b. Dmesg | grep –i ‘cpu’
例:
[root@linux victor]# dmesg | grep -i 'cpu'
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
KERNEL supported cpus:
Transmeta TransmetaCPU
PAT not supported by CPU.
ACPI: SSDT 1bdf645d 001FB (v01 PmRef CpuPmINTL
SMP: Allowing 1 CPUs, 0 hotplug CPUs
NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 15 pages at c1382000,