uptime
free -h
df -h
top (built-in):
top
Useful keys (top):
P CPU sort, M memory sort, k kill PID, 1 per-CPUhtop (if installed) is friendlier and supports tree view and filtering.
vmstat 1 5
High-level indicators:
r: runnable processes (CPU pressure)si/so: swap in/out (memory pressure)wa: IO waitiostat -xz 1 5
pidstat -p <pid> 1
ps aux --sort=-%cpu | head
ps aux --sort=-%mem | head