Find out CPU, Memory, and Hard-disk information in Linux

Check for CPU/processor info and count:
>
cat /proc/cpuinfo | grep processor
Notes: Counting starts at 0. If the last processor id is 3 obviously you have 4 cpu cores. You can grep for “physical id” (ex: cat /proc/cpuinfo | grep “physical id”) to find out if cpus are virtual or not. If no physical id I think those are virtual cpu cores.
Check for total memory and usage. This also includes detail of swap memory:
>
free -m
Notes: ”-m” gives you the result in MB.
Check for hard drive space and usage:
>
df -h
Notes: ”-h” means human readable for size such as MB or GB, etc.
******************************SAUDI APPS DBA****************************************************

No comments:

Post a Comment