cmdxray / commands / htop

What does htop do?

interactive process and resource viewer (a friendlier `top`).

▸ Explain your own htop command →

htop examples, explained

$ htop

  • htopinteractive process and resource viewer (a friendlier `top`)

$ htop -u postgres

  • htopinteractive process and resource viewer (a friendlier `top`)
  • -ushow only processes owned by the given user
  • postgresvalue for -u

$ htop -t

  • htopinteractive process and resource viewer (a friendlier `top`)
  • -tstart in tree view

htop flags & options

-ddelay between updates, in tenths of a second
-ushow only processes owned by the given user
-pmonitor only the given PIDs (comma-separated)
-ssort by the given column on startup
-tstart in tree view
-Cuse a monochrome (no-color) scheme
-Hhide user threads
--treeshow processes as a parent/child tree

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.