sudo apt-get update && sudo apt-get install -y htopUseful on Debian, Ubuntu, and compatible systems.
Core htop installation and launch commands, including startup options for delay, sorting, tree view, and PID filtering.
Package-manager and startup examples for common Linux systems.
sudo apt-get update && sudo apt-get install -y htopUseful on Debian, Ubuntu, and compatible systems.
sudo dnf install -y htopCommon on Fedora and modern RHEL-family distributions.
sudo pacman -S htopStandard package-manager install for Arch-based systems.
htopShows CPU, memory, and process information in an interactive full-screen UI.
htop -d 20A value of 20 refreshes about every 2 seconds.
htop -p 1,1234,5678Useful when watching a small set of services or worker processes.
htop -u www-dataHandy when investigating app-server or container-user processes.
htop --sort-key=PERCENT_CPUHelpful when you want CPU-heavy tasks surfaced immediately.
Launch into special views such as tree mode or read-only mode.
htop -tUseful for seeing parent-child relationships immediately.
htop --readonlyGood on shared systems when you only need visibility, not renice or kill actions.
htop -CUseful in limited terminals or for screenshots with minimal color noise.
htop -t --sort-key=PERCENT_MEMTree sorting applies among direct children within each subtree.
htop -p "$(pgrep -d, -f 'gunicorn|uvicorn')"Creates a focused watch list for matching service processes.
docker exec -it my-container htopUseful when htop is installed in the container image.