Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.unix.aix Frequently Asked Questions (Part 1 of 5)
Section - 1.150 How can I reduce the size of /var/adm/wtmp ?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Sex offenders ]


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?
See reader questions & answers on this topic! - Help others by sharing your knowledge
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/>.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




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 | Web FAQs | Documents | RFC Index ]

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





Last Update March 27 2014 @ 02:11 PM