How do I list processes in htop by just their name, without the full path?

Solution 1:

As an update, now apparently there is an option in Setup/DisplayItems Show Program Path that is checked by default. Just need to uncheck that so only the command name is shown.

Solution 2:

Apparently not. You can however go to Setup/DisplayItems to Highlight the basenames.

It doesn't only list the command like you want, but it atleast makes it a little more visible.

Solution 3:

To make htop display only nginx processes:

htop -p $(pgrep nginx | paste -s -d,)