how to check the CPU and RAM

How to check the CPU

$ cat /proc/cpuinfo

sample result:


vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 2.66GHz
stepping : 1
cpu MHz : 2668.026
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
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 ht tm pbe nx lm pni monitor ds_cpl tm2 cid cx16 xtpr
bogomips : 5337.58

How to check memory:

$ cat /proc/meminfo

sample result:

MemTotal:        2045020 kB
MemFree:         1446044 kB
Buffers:          206160 kB
Cached:           222196 kB
SwapCached:            0 kB
Active:           334708 kB
Inactive:         205000 kB
Active(anon):     113948 kB
Inactive(anon):        0 kB
Active(file):     220760 kB
Inactive(file):   205000 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:       1174932 kB
HighFree:         834984 kB
LowTotal:         870088 kB
LowFree:          611060 kB
SwapTotal:        120448 kB
SwapFree:         120448 kB
Dirty:              1220 kB
Writeback:             0 kB
AnonPages:        111296 kB
Mapped:            28620 kB

you can also check memory using this command:

# free -m
total       used       free     shared    buffers     cached
Mem:          1997        555       1441          0        202        217
-/+ buffers/cache:        134       1862
Swap:          117          0        117

You may also like