Annotation of 43BSDReno/usr.bin/lastcomm/lastcomm.1, revision 1.1

1.1     ! root        1: .\" Copyright (c) 1980, 1990 The Regents of the University of California.
        !             2: .\" All rights reserved.
        !             3: .\"
        !             4: .\" Redistribution and use in source and binary forms are permitted provided
        !             5: .\" that: (1) source distributions retain this entire copyright notice and
        !             6: .\" comment, and (2) distributions including binaries display the following
        !             7: .\" acknowledgement:  ``This product includes software developed by the
        !             8: .\" University of California, Berkeley and its contributors'' in the
        !             9: .\" documentation or other materials provided with the distribution and in
        !            10: .\" all advertising materials mentioning features or use of this software.
        !            11: .\" Neither the name of the University nor the names of its contributors may
        !            12: .\" be used to endorse or promote products derived from this software without
        !            13: .\" specific prior written permission.
        !            14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            17: .\"
        !            18: .\"     @(#)lastcomm.1 6.6 (Berkeley) 7/24/90
        !            19: .\"
        !            20: .Dd July 24, 1990
        !            21: .Dt LASTCOMM 1
        !            22: .Os BSD 3.0
        !            23: .Sh NAME
        !            24: .Nm lastcomm
        !            25: .Nd show last commands executed in reverse order
        !            26: .Sh SYNOPSIS
        !            27: .Nm lastcomm
        !            28: .Op Fl f Ar file
        !            29: .Op Ar command \&...
        !            30: .Op Ar user \&...
        !            31: .Op Ar terminal \&...
        !            32: .Sh DESCRIPTION
        !            33: .Nm Lastcomm
        !            34: gives information on previously executed commands.
        !            35: With no arguments,
        !            36: .Nm lastcomm
        !            37: prints information about all the commands recorded
        !            38: during the current accounting file's lifetime.
        !            39: .Pp
        !            40: Option:
        !            41: .Pp
        !            42: .Tw Fl
        !            43: .Tp Cx Fl f
        !            44: .Ws
        !            45: .Ar file
        !            46: .Cx
        !            47: Read from
        !            48: .Ar file
        !            49: rather than the default
        !            50: accounting file.
        !            51: .Tp
        !            52: .Pp
        !            53: If called with arguments, only accounting entries with a
        !            54: matching
        !            55: .Ar command
        !            56: name,
        !            57: .Ar user
        !            58: name,
        !            59: or
        !            60: .Ar terminal
        !            61: name
        !            62: are printed.
        !            63: So, for example:
        !            64: .Pp
        !            65: .Dl lastcomm a.out root ttyd0
        !            66: .Pp
        !            67: would produce a listing of all the
        !            68: executions of commands named
        !            69: .Pa a.out
        !            70: by user
        !            71: .Ar root
        !            72: on the terminal
        !            73: .Ar ttyd0  .
        !            74: .Pp
        !            75: For each process entry, the following are printed.
        !            76: .Pp
        !            77: .Ds I
        !            78: The name of the user who ran the process.
        !            79: Flags, as accumulated by the accounting facilities in the system.
        !            80: The command name under which the process was called.
        !            81: The amount of cpu time used by the process (in seconds).
        !            82: The time the process exited.
        !            83: .De
        !            84: .Pp
        !            85: The flags are encoded as follows: ``S'' indicates the command was
        !            86: executed by the super-user, ``F'' indicates the command ran after
        !            87: a fork, but without a following
        !            88: .Xr exec ,
        !            89: ``C'' indicates the command was run in PDP-11 compatibility mode
        !            90: (VAX only),
        !            91: ``D'' indicates the command terminated with the generation of a
        !            92: .Pa core
        !            93: file, and ``X'' indicates the command was terminated with a signal.
        !            94: .Sh FILES
        !            95: .Dw /var/account/acct
        !            96: .Di L
        !            97: .Dp Pa /var/account/acct
        !            98: .Dp
        !            99: .Sh SEE ALSO
        !           100: .Xr last 1 ,
        !           101: .Xr sigvec 2 ,
        !           102: .Xr acct 5 ,
        !           103: .Xr core 5
        !           104: .Sh HISTORY
        !           105: .Nm Lastcomm
        !           106: appeared in 3 BSD.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.