Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

Top Document: comp.unix.aix Frequently Asked Questions (Part 1 of 5)
Previous Document: 1.149 How to install LPPs on a shared disk?
Next Document: 1.151: How do I start local daemons at system startup?


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

1.150 How can I reduce the size of /var/adm/wtmp ?


The file /var/adm/wtmp grows with each login, but is never reduced.
The contents of wtmp is used (only?) by the command "last",
which shows, in reverse order, all the logins and reboots that
happened since the start of the wtmp file.

The file should not be deleted, but the contents can be discarded using
the following command:
# > /var/adm/wtmp

Alternatively the freeware utility "tidysys" can remove all the entries
from wtmp that are older than (say) 15 days. Tidysys was written by
Terry Murray <terry@weavel.demon.co.uk> for AIX 3.2 and is available
from ftp://ftp.frontiernet.net/pub/aix/.

Tidysys was ported to AIX 4.1 by C. Deignan and is available from
<http://www-frec.bull.com/>.



Top Document: comp.unix.aix Frequently Asked Questions (Part 1 of 5)
Previous Document: 1.149 How to install LPPs on a shared disk?
Next Document: 1.151: How do I start local daemons at system startup?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)

Last Update May 13 2007 @ 00:21 AM