3

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?

3

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

or

ps -p $PID -o 'args='

should both work on Linux, for example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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