How can I display only the processes of a specified user in htop?

Applying a filter (F4) doesn't seem to work, because it doesn't seem to apply the filter on the USER column.

  • F6 and you can sort by USER instead. Just use the arrow keys to select "USER" and then press Enter. It's not the same but at least it's alphabetical so each USER is isolated and easily distinguishable. – mchid Oct 21 '14 at 18:58

From man htop:

   -u --user=USERNAME
          Show only the processes of a given user

So, if you run htop -u colord, you'll only see processes by the user colord.

| improve this answer | |
  • 1
    Thanks for the answer, that'll do nicely for my situation too. I would love a way to switch on the fly though, rather than having to go out and back in, so if anyone knows of a way I'm all ears! – spookypeanut Sep 17 '15 at 8:46
  • 1
    @spookypeanut See Domi's answer. – becko Feb 2 '16 at 8:32

Another possibility is to press the 'u' key in htop. A selector that allows you to filter the process list by users will be displayed.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.