Re: History depth of the "last" command
From: Jon Amundsen (nntp_at_jamundsen.dyndns.org)
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
> <firstname.lastname@example.org> 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 ?
> 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:
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.
-- Jon Amundsen email@example.com 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
- application/pgp-signature attachment: stored