Find who is using my network – top for network utilization

Ok here is something that I have been looking for something.¬† Now that I have conky installed, so I can see the bandwidth usage on my desktop but was wondering for sometimes, where actually so much is being used. So did some quick search to see if I can get that info and did not have to go too far ūüôā

There is s¬† utility called iftop in the Fedora repo and at the URL. Oh and how to use it, just type sudo iftop or if you have multiple network interface then you can do \”iftop -f <device name>\”. Thats pretty simple and cool.

Name       : iftop
Arch       : i386
Version    : 0.17
Release    : 7.fc9
Size       : 71 k
Repo       : installed
Summary    : Command line tool that displays bandwidth usage on an interface
URL        : http://www.ex-parrot.com/~pdw/iftop/
License    : GPLv2+
Description: iftop does for network usage what top(1) does for CPU usage. It
: listens to network traffic on a named interface and displays a
: table of current bandwidth usage by pairs of hosts. Handy for
: answering the question \”why is our ADSL link so slow?\”.

For those of you, fond of pictures, here\’s a screenshot:

\"iftop\"

top – looks better and is more useful with a rc file…

top is a very useful command to find out who is eating up the CPU or the memory. But sometimes the plain and simple look simply would be boring so how about some fun. Copy the below code to file : ~/.toprc

RCfile for \”top\”
Id:a, Mode_altscr=1, Mode_irixps=0, Delay_time=5.000, Curwin=0
Def    fieldscur=mfcAbdEgHIursOpQTvyzWjKNLX
winflags=32184, sortindx=10, maxtasks=0
summclr=4, msgsclr=5, headclr=5, taskclr=4
Job    fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
winflags=62777, sortindx=0, maxtasks=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem    fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
winflags=62777, sortindx=13, maxtasks=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr    fieldscur=ABDECGfhijlopqrstuvyzMKNWX
winflags=62777, sortindx=4, maxtasks=0
summclr=3, msgsclr=3, headclr=2, taskclr=3

See the changes in the top window.

You can learn about these in the man page for top. But you actually don\’t need to :).

If you want to make changes, simply press \”Z\” or \”h\” for help.

Once you press \’Z\’ you will be able to make changes from within the top command and then you can write the toprc with your changes with \’w\’. Simple ūüôā

\"Reblog

top command with rc to make it more useful and beautiful.

Just for fun, somedays back I was reading the top command. This command is something that I have been using since long time and have never read the man page so I thought let me do that. And yes, it was worth while to look at that page. I came to know that top supports toprc file and that it can be used to configure the way top looks. So:

Here\’s how top looks without the rc file

\"top\"

And here\’s how it looks with the rc file:

\"top

And here is the ~/.toprc file:

RCfile for \”top with windows\” # shameless braggin\’

Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=5.000, Curwin=0

Def fieldscur=mfcAbdEgHIursOpQTvyzWjKNLX

winflags=32184, sortindx=10, maxtasks=0

summclr=2, msgsclr=1, headclr=7, taskclr=7

Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX

winflags=62777, sortindx=0, maxtasks=0

summclr=6, msgsclr=6, headclr=7, taskclr=6

Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX

winflags=62777, sortindx=13, maxtasks=0

summclr=5, msgsclr=5, headclr=4, taskclr=5

Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX

winflags=62777, sortindx=4, maxtasks=0

summclr=3, msgsclr=3, headclr=2, taskclr=3

This is just an example, but you can do much more with the rc file.