top

Linux · Processes · available in the simulator

What it does

Display Linux processes.

Syntax

top [opciones]

Options and parameters

  • -u USER

    Filter by user

  • -n N

    Run for N iterations and exit

  • -d S

    Update interval in seconds

  • -u

    Display only processes belonging to the specified user.

    top -u ana
  • -d

    Delay time between updates in seconds.

    top -d 2
  • -n

    Number of iterations before ending.

  • -p

    Monitor only the specified process IDs.

Usage examples

  • top
  • top -u ana
  • top -n 1
  • top -b -n 1
  • top -d 2

Notes and common mistakes

  • Interactive commands within top: M sorts by memory, P sorts by CPU, and q quits.
Practise top

Related commands