*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> lastcomm (8)              



NAME    [Toc]    [Back]

       lastcomm  -  Outputs  information  about the last commands

SYNOPSIS    [Toc]    [Back]

       lastcomm [Command] [Name] [Tty]

DESCRIPTION    [Toc]    [Back]

       The lastcomm command outputs information about all  previously
   executed   commands   that  are  recorded  in  the
       /var/adm/pacct file in reverse chronological order.

       You may specify a  particular  command  with  the  Command
       parameter,  a particular user with the Name parameter, and
       a particular terminal as the command source with  the  Tty
       parameter.  Output  is  then  restricted  to the specified
       parameters.  A Tty terminal may be named fully (for  example,
 tty0) or abbreviated (for example, 0).

       The  following  information is displayed for each process:
       Name of the command under which the  process  was  called.
       Any  options  collected when the command was executed. The
       following options are  valid:  Command  was  run  with  an
       effective  user-id  of  0.   Command ran after a fork, but
       without an exec system call following  it.   Name  of  the
       user who issued the command.  The terminal the command was
       started from.  Seconds of CPU time used.  Time the process

EXAMPLES    [Toc]    [Back]

       To  display information about all previously executed commands
 recorded in the /var/adm/pacct file, enter: lastcomm

              Information is displayed similar to:

              lastcomm     ajh       lat/620        1.13 secs Thu
              Feb   24   15:02   pg            ajh        lat/620
              5.91  secs  Thu  Feb  24  15:01  ln          miller
              ttyp1           1.14  secs  Thu  Feb  24  15:01  ls
              rob       ttyp1          0.02 secs Thu Feb 24 15:01
              pg          sjz      ttyp1          0.33  secs  Thu
              Feb    24    15:00    sendmail   SF   root       __
              0.01 secs Thu Feb 24 15:00 To  display  information
              about  commands  named  a.out  executed by the root
              user on terminal ttyd0, enter: lastcomm a.out  root

FILES    [Toc]    [Back]

       Specifies the command path The current accounting file

SEE ALSO    [Toc]    [Back]

       Commands: last(8)

[ Back ]
 Similar pages
Name OS Title
lastcomm HP-UX show last commands executed in reverse order
lastcomm FreeBSD show last commands executed in reverse order
lastcomm OpenBSD show last commands executed in reverse order
pac Tru64 Outputs printer/plotter accounting information
printpw Tru64 Outputs the contents of the password database
ac Tru64 Outputs connect-session records
help HP-UX Displays help information about dtscp commands.
tis_once Tru64 Calls an initialization routine that can be executed by only one thread, once
pthread_once Tru64 Calls a routine to be executed by a single thread, once.
rc2 Tru64 Run command script executed when entering a multiuser run level
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service