Linux Commands | Process Management | top Real-Time Process Monitoring

top Command

  • top is a real-time process monitoring program.
  • By default, the screen refreshes every 3 seconds. Press the spacebar to refresh immediately.

Syntax

top (option)

Options

  • -d [time]: Sets the screen refresh interval.
  • -i: Ignores idle and zombie processes.

Commands Available While top Is Running

  • k: Run the kill command.
  • r: Change the nice value.
  • l: Toggle the top header line on or off.
  • m: Toggle memory information on or off.
  • t: Toggle process and CPU information on or off.
  • c: Toggle command-line options on or off.
  • q: Quit the program.