How to filter multiple users in htop

htop

TL;DR: Is there any way to filter two users processes at the same time in htop?

I'm trying to get a list of processes of several users in htop. Code below seems not to work as second –user flag overrides the first one.

htop --user=user1 --user=user2

Similarly,

--user=user1,user2

also didn't work, although it works for PIDs with

--pid=PID1,PID2

command.

I tried from htop itself with F4 filtering, however I wasn't successful.

Best Answer

  • htop author here! No, it is currently not possible, as of htop 2.2.0, but I'll keep that in mind as a feature request!

  • Related Question