I would like to know how I can measure the bandwidth consumption of a command in Ubuntu.
For example:
I am running this command on Ubuntu terminal:
curl -I trafficinviter.com
I get the following result:
HTTP/1.1 200 OK
Date: Mon, 02 Jan 2017 14:13:14 GMT
Server: Apache
X-Pingback: http://trafficinviter.com/xmlrpc.php
Link: <http://trafficinviter.com/>; rel=shortlink
Set-Cookie: wpfront-notification-bar-landingpage=1
Content-Type: text/html; charset=UTF-8
But I do not understand how much the bandwidth is consume by the curl command. Even whether the curl has downloaded the complete page and shown me only header? I only want to know whether there is any command that show the bandwidth consumption when I use the curl command as:
(some command that show bandwidth consumption) curl -I trafficinviter.com
and I get some result like :
Bandwidth used: 100kbps
Hope this help to define my problem.Kindly let me know your response.
nethogs
, it monitors network usage per process. – Byte Commander Jan 02 '17 at 14:33