Did you know?
htop can filter several processes at once: separate the names with |, like nginx|php-fpm.
Press F4 in htop and type nginx|php-fpm, or start it with htop -F to filter from the command line.
- System & services
- Last checked
Explained
The htop filter (F4 or \) keeps only the processes whose command line matches what you type. It isn’t limited to one name: separate several terms with a pipe, and htop shows every process that matches any of them.
htop -F 'nginx|php-fpm'
The terms are plain text, not regular expressions, and matching ignores case. Inside htop, press F4, type nginx|php-fpm and press Enter. To clear the filter, press F4 again and then Esc.
This is handy for watching one stack at a time, for example a web server with its PHP workers, or postgres|redis on a database host.
Learn more
- htop Command in Linux: Install, Use and Keyboard Shortcuts Full guide · Updated Nov 2026
