Netstat

From Hackepedia
Revision as of 13:35, 8 October 2005 by Pbug (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

netstat displays network statistics. For example if I wanted to see how many bytes flow through my interface and see this at an interval of 1 second I would type:

$ netstat -nb -I pppoe0 -w 1
pppoe0 in          pppoe0 out          total in           total out      
    bytes               bytes             bytes               bytes      
1396887118           221757068        2813821922           475500976      
    16620                 888             33492                2168      

One can also see what existing connections/sockets are open:

$ netstat -na
...