Welcome to WebmasterWorld Guest from 54.162.152.232

Forum Moderators: bakedjake

Message Too Old, No Replies

wtmp file got too big

can I delete it?

     
8:11 am on Mar 22, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Apr 19, 2003
posts:282
votes: 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.

8:28 am on Mar 22, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Mar 14, 2002
posts:325
votes: 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.

8:49 am on Mar 22, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Apr 19, 2003
posts:282
votes: 0


Thank you Duckula.

I will delete wtmp.1 file and empty wtmp.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members