Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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.