top
is a terminal-based program that displays dynamic, real-time information about system activity. It helps system administrators identify high-resource processes and monitor overall system health.
Usually preinstalled in most Linux distributions, you can launch it with:
top
Key | Function |
---|---|
h | Display help screen |
k | Kill a process (enter PID) |
r | Renice a process |
u | Filter by user |
n / # | Set number of processes to show |
q | Quit top |
top -d 3
top -u jina
top -p 1234,5678
P
– Sort by CPU usageM
– Sort by memory usageT
– Sort by time runninghtop
offers a more user-friendly and graphical interface:
sudo apt install htop
htop
top
is a foundational Linux tool for understanding what’s consuming system resources in real time. With its keyboard shortcuts and configurable options, it empowers administrators to detect performance bottlenecks and manage processes effectively.