Linux command: top

Quick starttopCommand to list the processes running in real time

Quick starttopCommand to list the processes running in real time

ThistopCommands are used to display dynamic real-time information about the processes running in the system.

It is very convenient to know what happened.

Its usage is very simple, you only need to typetop, The terminal will be completely immersed in this new view:

The process is long-running. To log out, you can enterqLetter orctrl-C.

There are a lot of information available to us: the number of processes, the number of processes running or sleeping, system load, CPU usage, etc.

Below, the list of processes occupying the most memory and CPU will be updated continuously.

By default, if you start from%CPUIn the highlighted column, they are sorted by CPU used.

You can add flags to sort processes by memory used:

top -o mem

This command can be used in Linux, macOS, WSL and wherever you have a UNIX environment

Download mine for freeLinux Command Manual


More cli tutorials: