Introduction
Sometimes your computer or server feels slow or unresponsive. To understand why, you need to check how much memory, CPU, and uptime it has. The commands free, uptime, and vmstat help you see this information quickly.
When your server is running slow and you want to check if it is out of memory.
When you want to know how long your system has been running without a restart.
When you want to see CPU usage and system activity in real time.
When you need to check if your system is swapping memory to disk, which slows it down.
When you want to monitor system performance before and after installing new software.