hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 581 forks source link

Inverted user option #934

Open SpaceshipOperations opened 5 years ago

SpaceshipOperations commented 5 years ago

Hi. It'd be nice to have an option that has the opposite effect of -u -- showing processes belonging to all but the specified user.

I suggest calling it a capital -U <username> (or just -U as an alias to -U $USER) on the command line, and making its keyboard shortcut a capital U inside the program, which pops up a list just like u that allows you to select the user which you want to exclude.

The reason is that I really like the idea of having two separate process views: one of them showing my own processes, and the other showing "system processes" (basically anything other than my own). As you already know, not all system processes run as root. A bunch of them have their own users like dbus, systemd-*, clamav, etc. and it'd be nice to get them all in one combined view.

The way it is right now, if I want to get all "system processes" in a single view, they'd be interleaved with my own, which makes the list longer and less navigable. It'd be nice to have all of my processes filtered out.

By the way, many thanks for your great program; I use it everyday and it rocks.