htop-dev / htop

htop - an interactive process viewer
https://htop.dev/
GNU General Public License v2.0
6.32k stars 428 forks source link

Add support to filter by jail name #658

Open michael-o opened 3 years ago

michael-o commented 3 years ago

htops allow to filter by username, but I need to filter by jail name also because I have a bunch of jails and cannot really get a decent overview over processes of a specific jail.

BenBE commented 3 years ago

Filtering by anything else but the process command line isn't currently implemented.

Instead of implementing filtering by each and every column on its own, a more generic approach (similar to what e.g. aptitude uses) might be an idea.

ssh anything containing ssh in the command line ~jail:foo anything containing foo for the jail column ~cwd^/home ~exe:python2 Any python2 scripts running below the /home directory (^ meaning start of string)

michael-o commented 3 years ago

I guess that would be acceptable. I am quite used to hit u and select the user. The same for the jail would be just acceptable.