Introduction
Quite often it is necessary to get OS or hardware statistics for a variety of reasons. You may need to monitor CPU percent level or check the remaining space on a hard drive. In any case, you can use these commands to help perform these tasks.
What is the Linux Version
lsb_release -a
How much memory is available
free -h
Get a CPU count
lscpu | grep 'CPU(s)'
What is the Hard Drive size
df -h
Monitor Processes using TOP
Just run the command ‘top’ or ‘htop’ , if it is installed, to get real time Mem and CPU usage and see what process are resource hogs.