Ubuntu – top / htop; group process by command

htoplinuxtopxubuntu

I'd like to know how much resource a specific command is using.

top and htop displays information on per process basis but I'd like the information to be shown on per command basis. E.g. I'd like to know how much RAM chrome is using.

Best Answer

Pressing H in htop group the processes by the main thread (command), actually it toggles the threads visibility.