Sobes.tech
Junior — Middle

Can you explain what the 'top' command in system commands is and what it is used for?

sobes.tech AI

Answer from AI

The top command in Linux and Unix systems is used to monitor the current system load in real time. It displays a list of processes running on the system, with information about CPU, memory usage, runtime, and other parameters.

Main features of top:

  • Display processes sorted by CPU or memory load.
  • Interactive control: you can terminate processes, change priorities.
  • Refresh information at a specified interval.

An example output of top shows:

  • Total CPU and memory load.
  • List of processes with PID, user, %CPU, %MEM, runtime.

This is a useful tool for quick system status analysis and identifying processes that consume a lot of resources.