1. Check the CPU model
$ cat /proc/cpuinfo | grep name | sort | uniq
model name: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
2. Check the number of physical CPUs
$ cat /proc/cpuinfo | grep "physical id"
8 (8 physical CPUs)
3. Check the number of CPU cores and threads
$ cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l
1 (single core)
$ cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l
8 (8 threads)
4. You can use lscpu to view directly
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 8
NUMA node (s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Stepping: 7
CPU MHz: 2299.906
BogoMIPS: 4599.70
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0-7
5. lsb_release -a View the Linux system version
$ yum install -y redhat-lsb
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
6. uname -a to view the kernel version
$ uname -a
Linux web02 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
7. View memory
$ free -g (or: cat /proc/meminfo)
total used free shared buffers cached
Mem: 15 5 10 0 0 1
-/+ buffers/cache: 3 11
Swap: 1 0 1