Ad space (banner)
🖥️Linux Lessons
Lesson 36 / 61

Checking System State with top

top is for when "the server feels slow, and I want to check what's causing the load." top lists the processes consuming the most CPU or memory, updating in real time.

Just type top alone to run it. The display auto-refreshes every few seconds, and pressing q exits it.

Running top lists processes sorted by CPU and memory usage, letting you observe the system's overall load in real time.

A common early mistake is being overwhelmed by the sheer amount of constantly-moving information, unsure where to even look. Focusing first on the CPU% and MEM% columns narrows down the cause more easily.

In real work, when a server starts feeling sluggish, this is frequently the very first investigative command used to pin down the process responsible.

Linux
Try it (type this into the pseudo terminal)
top

🧑‍💻 You can type this command into the Linux pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)