System MonitoringLesson 25Free preview
Bash List Processes (top)
This lesson is part of Bash · All levels
Summary
The top command displays a list of processes that are periodically updated, sorted by CPU usage. You can interact directly inside, like pressing k to send a signal or q to exit. More convenient variants such as htop are available in many modern distros.
Key points
- Top displays the process in real-time
- Inbuilt sequence: process with highest CPU at the top
- Press q to exit and k to send the signal
- Press M to sort by memory
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.