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 for AIX 3.2 and is available
from ftp://ftp.frontiernet.net/pub/aix/tsys220.tar.

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top