How to view network usage via terminal

Joined
Feb 25, 2010
Messages
4
Reaction score
0
Points
1
Hello,

Activity monitor is able to tell me how much data i am downloading per second (I use this to monitor because I am often downloading from several different programs at the same time).

Is there a way that I can use terminal to view a dynamically-refreshed network transfer rate?

Thanks,
- ejang
 
Joined
Oct 26, 2009
Messages
128
Reaction score
8
Points
18
Use netstat from Terminal to get network statistics. You might want to read the man page for netstat. It has a lot of options.
 
OP
E
Joined
Feb 25, 2010
Messages
4
Reaction score
0
Points
1
thanks, I did not investigate the man netstat enough. Turns out that

netstat 1
will update bytes in and out every 1 second.

Thanks again!
 
OP
E
Joined
Feb 25, 2010
Messages
4
Reaction score
0
Points
1
oops, quick follow-up question:

is there any way to display netstat 1 results in Megabytes/sec or kilobytes/sec instead of bytes/sec?

thanks
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top