Combine tree mode and sorting from the command line.
Section: Startup modes
Start tree view with an explicit sort key
bash
bash
htop -t --sort-key=PERCENT_MEMExplanation
Tree sorting applies among direct children within each subtree.
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 Startup modes
Focus on a process after startup
Use PID filter for targeted monitoring of a service.
Run inside a container shell
Inspect processes visible inside the current container namespace.
Sort by a specific column on startup
Pick an initial sort key from the shell.