Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Top bandwidth consumers

    How to find out pid's and speed of top x processes that consume most network bandwidth? I tried to fetch data from nethogs, so i redirected the output to some file, but the output was messy with some weird characters and i wasn't able to grep that file. What I want is to fetch those data and write them into some file that would have 4 columns: PID,name of process(command),down speed and up speed.

  2. #2
    How did you redirect the output? Did you do something like:
    # touch foo.txt
    # nethogs wlan0 >> foo.txt
    Because that's the easiest method I can think of, and the output shouldn't be too hard to read.

    Also, why were you trying to redirect the output of nethogs in the first place? Why not just view it on the command line?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts