To check the system information of CentOS Linux from command line interface, the following commands will come in handy.
cat /proc/cpuinfo
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-4620 0 @ 2.20GHz
stepping : 2
microcode : 0x710
cpu MHz : 2200.000
cache size : 16384 KB
physical id : 2
siblings : 1
core id : 0
cpu cores : 1
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm ida arat pln pts dtherm
bogomips : 4400.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
cat /proc/meminfo
MemTotal: 3883788 kB
MemFree: 119860 kB
MemAvailable: 89684 kB
Buffers: 0 kB
Cached: 64528 kB
SwapCached: 455596 kB
Active: 2526176 kB
Inactive: 993336 kB
Active(anon): 2503132 kB
Inactive(anon): 954552 kB
Active(file): 23044 kB
Inactive(file): 38784 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 8191996 kB
SwapFree: 4795948 kB
Dirty: 96 kB
Writeback: 0 kB
cat /proc/cpuinfo
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-4620 0 @ 2.20GHz
stepping : 2
microcode : 0x710
cpu MHz : 2200.000
cache size : 16384 KB
physical id : 2
siblings : 1
core id : 0
cpu cores : 1
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm ida arat pln pts dtherm
bogomips : 4400.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
To check the memory details use the following :
vmstat -s
3883788 K total memory
3758516 K used memory
2232252 K active memory
1263620 K inactive memory
125272 K free memory
0 K buffer memory
259872 K swap cache
8191996 K total swap
3114568 K used swap
5077428 K free swap
411521845 non-nice user cpu ticks
23449 nice user cpu ticks
116773236 system cpu ticks
5900085167 idle cpu ticks
1174004 IO-wait cpu ticks
1058 IRQ cpu ticks
7376135 softirq cpu ticks
0 stolen cpu ticks
234643114 pages paged in
380977726 pages paged out
3875967 pages swapped in
4295358 pages swapped out
948364036 interrupts
1524453860 CPU context switches
1479654445 boot time
130969946 forks
You could also use an alternative command :
cat /proc/meminfo
MemTotal: 3883788 kB
MemFree: 119860 kB
MemAvailable: 89684 kB
Buffers: 0 kB
Cached: 64528 kB
SwapCached: 455596 kB
Active: 2526176 kB
Inactive: 993336 kB
Active(anon): 2503132 kB
Inactive(anon): 954552 kB
Active(file): 23044 kB
Inactive(file): 38784 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 8191996 kB
SwapFree: 4795948 kB
Dirty: 96 kB
Writeback: 0 kB