Option to show process arguments #23

TheAmigo opened this Issue Jan 25, 2016 · 6 comments


None yet

3 participants


When there are multiple instances of a process running, it would be much more helpful to if nethogs could show the arguments to all processes.

raboof commented Jan 25, 2016

Agreed! Perhaps we should add a -c flag like top

raboof commented Nov 16, 2016

Hmm, we actually already show the arguments, right? For example I see ..sr/lib/chromium/chromium --show-component-extension-options --ignore-gpu-blacklist --disable-background-n.

Related to #103 .


On RHEL 7.1 running the nethogs 0.8.5 (built from source) I don't see arguments for any process. Lots of "ssh", "/usr/bin/perl", and other commands, but no arguments for any of the. Tried both "sudo nethogs" and running nethogs from a root shell... still no arguments.

raboof commented Nov 19, 2016

Ah, it seems chromium does something 'special' there: if I look at /proc/<pid>/cmdline, usually for commands like perl the command is separated from the parameters with \0 characters, but for chrome they're spaces. Odd.


I don't have Chrome installed on this machine right now so I can't check... it's possibly an artifact of a wrapper script Chrome uses that ends up joining all its arguments with spaces between them. Null bytes are the standard delimiter so that individual arguments can have space in them without being confused with being separate args.


I confirm, Chrome rewrites cmdline,

As for this issue, I almost finished implemetation, anomen-s/nethogs@d74711e

@anomen-s anomen-s added a commit to anomen-s/nethogs that referenced this issue Nov 24, 2016
@anomen-s anomen-s Add -l option to show full command line (fixes #23) f04738d
@raboof raboof closed this in 5e2c357 Jan 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment