Linux Top Command Maker Tool

Use top command to view the active processes currently managed by the Linux Kernel.

Basic Usage

Generate the top command with custom options.

Display Control Options
Use -d to set the delay.
Use -n to specify iterations.
Use -b for batch mode.
Use -i to hide idle processes.
Use -H to show threads.
Use -u to filter by user.
Use -p to monitor specific PIDs.
Sorting and Fields Control
Use -o to sort by a specific field.
Use -M to change memory units.
Use -c to toggle full command display.
Interactive Commands

These commands are used during the execution of top.

  • h or ?: Display help menu
  • q: Quit top
  • z: Toggle color/monochrome mode
  • k: Kill a process
  • r: Renice a process
  • s: Change update interval
  • f: Add/remove fields
  • o: Change field order
  • P: Sort by CPU usage
  • M: Sort by memory usage
  • T: Sort by runtime
  • I: Toggle idle processes
  • Space: Force update
Filtering Options
Use l to toggle load average.
Use t to toggle tasks/CPU states.
Use m to toggle memory/swap info.
Batch Mode Options
Use -b for batch mode.
Use -n to specify iterations.
Help and Version
Use -h or --help to display help.
Use -v to display version.
top