Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm using the command sudo nethogs to watch network traffic. I have a problem in that the name of the program is too long (it doesn't fit in the PROGRAM column).

I haven't found any nethogs configuration switch dealing with this issue. Do you know how to see the whole name of the process?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I don't think nethogs offers a feature like that, but you can use the process id it shows in the first column to look up the information.

cat /proc/$PID/cmdline


ps -p $PID -o 'args='

should both work on Linux, for example.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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