Hogs

sys_hogs

Show processes sorted by resource usage. With no argument, runs all three reports (cpu, mem, swap) in sequence. Passes any trailing arguments through to the underlying hog function (e.g. a line count).

Example

sys_hogs          # all three reports
sys_hogs cpu      # CPU hogs only
sys_hogs mem 20   # top 20 memory hogs

Arguments

  • $1 (string): Optional: cpu, mem, or swap to show a single report
  • ... (string): Optional: arguments passed through to the hog function (e.g. 20)

Exit codes

  • 0: Always
  • 1: Unrecognised argument

Output on stdout

  • Tabular process list, colour-coded when stdout is a tty