How to Check CentOS RAM, CPU and HDD Information

Whenever we need to see basic information about our CentOS installation the following Command might be very helpful.

For CentOS version

rpm -q centos-release

To Check Hard Disk Size

df -h

To Check Ram Size

cat /proc/meminfo | grep MemTotal

To Check CPU Information

cat /proc/cpuinfo | grep processor | wc -l