LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2005, 01:44 AM   #1
ananthbv
Member
 
Registered: Nov 2003
Posts: 49

Rep: Reputation: 15
How to find the amount of data downloaded when connected to a network


Hi all,
I would like to find the amount of data dowloaded by my system whenever i am connected to the internet so that i can keep tab on the usage. by 'downloaded' i mean all the data received by the system, not just the files we get by right-click and 'save target as'.
is there a command to do this or should i write a program? if i have to write a program, please tell how to go about it.
i am using Linux fedora core 3
thanks.

Last edited by ananthbv; 10-28-2005 at 01:48 AM.
 
Old 10-28-2005, 01:58 AM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
You can look at RX bytes as repored by ifconfig.
Code:
ifconfig eth0 | sed -n 's/.*RX bytes:\([0-9]*\) .*/\1/p'
 
Old 10-30-2005, 01:25 AM   #3
ananthbv
Member
 
Registered: Nov 2003
Posts: 49

Original Poster
Rep: Reputation: 15
thanks, randyding.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HP laserjet 6p stalls with large amount of data simjii Mandriva 2 04-10-2020 09:52 PM
calculate amount of data transferred to certain ip addresses dtra Linux - Software 0 11-07-2005 08:57 PM
how to amount hda1 (win xp pro-ntfs) hda5 (data) and cdrom (cd-rw) yohanes Linux - Hardware 2 08-30-2005 04:45 AM
How to count amount of data btwn iface and IPAddr krizzz Linux - Networking 1 10-20-2004 08:11 PM
Bash Scripting - Waiting for a certain amount of data welby Programming 12 05-12-2004 01:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration