homepage Welcome to WebmasterWorld Guest from 50.17.66.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
wtmp file got too big
can I delete it?
newbies

10+ Year Member



 
Msg#: 1008 posted 8:11 am on Mar 22, 2004 (gmt 0)

I just noticed that there are two wtmp files (wtmp and wtmp.1) on my RH linux system. Both are hundreds MB and eat up my disk space. Can I discard them and create new ones?

Thanks in advance.

 

Duckula

10+ Year Member



 
Msg#: 1008 posted 8:28 am on Mar 22, 2004 (gmt 0)

wtmp.1 is a backup archive; it's no longer being used, archive and remove it and forget about it.

wtmp should be still being written to, but can be emptied if you want. The proper way I guess is by 'echo "" > /var/log/wtmp', not removing it.

newbies

10+ Year Member



 
Msg#: 1008 posted 8:49 am on Mar 22, 2004 (gmt 0)

Thank you Duckula.

I will delete wtmp.1 file and empty wtmp.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved