Use top command to view the active processes currently managed by the Linux Kernel.
Generate the top command with custom options.
-d to set the delay.
-n to specify iterations.
-b for batch mode.
-i to hide idle processes.
-H to show threads.
-u to filter by user.
-p to monitor specific PIDs.
-o to sort by a specific field.
-M to change memory units.
-c to toggle full command display.
These commands are used during the execution of top.
h or ?: Display help menuq: Quit topz: Toggle color/monochrome modek: Kill a processr: Renice a processs: Change update intervalf: Add/remove fieldso: Change field orderP: Sort by CPU usageM: Sort by memory usageT: Sort by runtimeI: Toggle idle processesSpace: Force updatel to toggle load average.
t to toggle tasks/CPU states.
m to toggle memory/swap info.
-b for batch mode.
-n to specify iterations.
-h or --help to display help.
-v to display version.