Code-Memo

System monitoring (top, htop, vmstat)

Quick health snapshot

uptime
free -h
df -h

top / htop

top (built-in):

top

Useful keys (top):

htop (if installed) is friendlier and supports tree view and filtering.

vmstat (CPU + memory + IO)

vmstat 1 5

High-level indicators:

iostat / pidstat (if available)

iostat -xz 1 5
pidstat -p <pid> 1

Per-process inspection

ps aux --sort=-%cpu | head
ps aux --sort=-%mem | head