1.1 View the number of CPUs
# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
2 **uniq command: delete duplicate lines; wc -l command: count the number of lines**
1.2 View the number of CPU cores
# cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 4
1.3 View CPU model
# cat /proc/cpuinfo | grep 'model name' |uniq
model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz
Summary: The server has 2 4-core CPUs, model Intel(R) Xeon(R) CPU E5630 @ 2.53GHz
2. View the total memory
#cat /proc/meminfo | grep MemTotal
MemTotal: 32941268 kB //Memory 32G
3. Check the hard disk size
# fdisk -l | grip Disk
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
Summary: The hard disk size is 146.7G, which is the manufacturer's nominal 160G