Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

howto clear /proc/net/dev

1,459 views
Skip to first unread message

Michael Rentzsch

unread,
Jul 17, 2001, 5:44:44 AM7/17/01
to
Hello,

the file /proc/net/dev logs all network traffic in a kind of table. Does
anybody know how to reset this file (all data to zero). Does a removing do,
or sthg. like cat /dev/null > /proc/net/dev, or is there a special command?

THX 4 your answers,
Michael Rentzsch

--
Stud. Informatik
www.repc.de
Mobil: (0174) 9 75 24 81 Talk: mr...@repc.csn.tu-chemnitz.de

dbia...@square.nl

unread,
Jul 17, 2001, 7:55:37 AM7/17/01
to
Michael Rentzsch <michael....@informatik.tu-chemnitz.de> wrote:
> the file /proc/net/dev logs all network traffic in a kind of table.

/proc is a "phony" filesystem created at runtime, it does not use
any space on the disk, the data are read from the memory.
The information in /proc/net/dev are the same that you obtain
using /sbin/ifconfig. If you want to reset those numbers, you have to
shutdown and restart the interface (ifconfig down/ifconfig up).

Davide

0 new messages