Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I will be heading off to live in the dorms in about 2 weeks and was informed that they monitor the bandwidth pretty heavily. 2GB d/l per day is what they say they allow roughly. Is there a way to monitor how much data I have transfered in a day? I would like to stay as close to my 2GB limit as possible because I'm paying for the connection so might as well use it. Thanks
ifconfig itself shows sent(TX) and recieved(RX) bytes since the connection was acquired, so if you dont keep your machine on 24/7, or reset your connection every 24 hours, this would make a simle way of monitoring it:
That snippet will get you the info you want neatly.. Ofcourse there is prolly some nifty program for better monitoring, but hey, thats what search engines are for, right? (;
Put up quicly a nicer output and interface to that quick grepping.. Its set up so that if you give any parameter at all, also the second interface is shown, if no parameter is given, only the first is shown. Just to show you an idea:
Not as nice as a script, and I'm not even sure of the accuracy,
but with GkrellM you can hover your mouse over the eth0
(or appropriate) NIC display window, and a small rectangle will
appear in the bottom right of that area. Then just click on the
rectangle and you will get a window pop up with statistics for
Daily, Weekly, and Monthly received, transmitted, and total.
GKrellM has a lot more configurability and can keep track of your usage over the course of a month or a week, regardless of restarts. Of course you could just as easily write up a script to keep a daily, weekly, and/or monthly total in a log somewhere.
Get creative, and be sure to let us know what you come up with.