Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!mcdchg!ddsw1!olsa99!tabbs!aris From: aris@tabbs.UUCP (Aris Stathakis) Newsgroups: comp.unix.xenix Subject: Re: Why is wtmp so big? Message-ID: <413@tabbs.UUCP> Date: 1 Dec 89 09:35:17 GMT References: <1226@ispi.UUCP> Organization: TABBS - Totally Awesome BBS Public Access UNIX Lines: 23 From article <1226@ispi.UUCP>, by jbayer@ispi.UUCP (Jonathan Bayer): } rfarris@serene.UUCP (Rick Farris) writes: } }>Is this a "log" file, composed of numerous /etc/utmp entries? Can I }>truncate it by copying /etc/utmp to it? Can I delete it altogether, }>and let it recreate itself? } } If you delete it then it will not be recreated. You can truncate it by } either copying /etc/utmp to it, or by copying /dev/null to it. Is there perhaps any program out there ther truncates the /etc/wtmp file to the 100 most recent entries? Since it is a binary file, this is no trivial task. Thanks in advance. Aris -- Aris Stathakis | Bang: ..!uunet!ddsw1!olsa99!tabbs!aris or aris@tabbs.UUCP - Gimme a beer and money sandwich.... Hold the bread - - Waldo (D.R.) Dobbs