Htop Remote, Container, and Server Recipes/Run with elevated privileges

See more processes and use all process actions.

Section: Remote SSH workflows

Run with elevated privileges

bash
bash
sudo htop
Explanation

Often needed to inspect other users' processes fully or send privileged signals.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Remote SSH workflows
Run read-only with sudo
Full visibility without accidental mutations.
OpenIn sheetbashsame section
Run htop over SSH
Open a remote session directly into htop.
OpenIn sheetbashsame section
Run htop inside tmux on a remote host
Keep monitoring alive if your connection drops.
OpenIn sheetbashsame section
Focus on PostgreSQL processes
Monitor a database host by user.
OpenIn sheetbashsame section
Run htop inside a running container
Inspect the process table from the container's perspective.
Run htop in a Kubernetes pod
Attach an interactive process view to a pod shell.