Re: History depth of the "last" command

From: Jon Amundsen (nntp_at_jamundsen.dyndns.org)
Date: 01/28/04


Date: Wed, 28 Jan 2004 08:49:17 -0600


On Wed, Jan 28, 2004 at 11:53:08AM +0100, Frdric Normand wrote:
> On Wed, 21 Jan 2004 16:03:07 +0100, Fr?d?ric Normand
> <fr.normand@laposte.net> wrote:
>
> >As far as I know, the history of the "last" command is archived in the
> >file /var/adm/wtmp.
> >
> >How can we manage the deep of field of this command ? Is there anay
> >parameter of variable as we have HISTFILE for exemple for the
> >"history" command ?
> >
> >Regards
>
>
>
> Good grief, nobody seems intersted in my question...
> Where are the gurus.....
>
>
> May be I will polish the magic lamp :-)
>

You can give the 'last' command a number as an option. ex:

last -10

Which will limit the number of results returned. After a brief search through some of the accounting documentation I don't see an obvious way to limit the size of the /var/adm/wtmp file.

HTH

-- 
Jon Amundsen
nntp@jamundsen.dyndns.org
A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.
                -- Mahatma Ghandi




Relevant Pages