The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

lastcomm (1)
  • lastcomm (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
  • lastcomm (1) ( FreeBSD man: Команды и прикладные программы пользовательского уровня )
  • >> lastcomm (1) ( Linux man: Команды и прикладные программы пользовательского уровня )
  •  

    NAME

    lastcomm -  print out information about previously executed commands.
     
    

    SYNOPSIS

    lastcomm
    [ command-name ... ]
    [ user-name ... ]
    [ terminal-name ... ]
    [ --strict-match ]
    [ -f filename | --file filename ]
    [ --user name ] [ --command name ] [ --tty name ]
    [ --debug ] [ -V | --version ] [ -h | --help ]
     

    DESCRIPTION

    lastcomm prints out information about previously executed commands. If no arguments are specified, lastcomm will print info about all of the commands in acct (the record file). If called with one or more of command-name, user-name, or terminal-name, only records containing those items will be displayed. For example, to find out which users used command `a.out' and which users were logged into `tty0', type:

    lastcomm a.out tty0

    This will print any entry for which `a.out' or `tty0' matches in any of the record's fields (command, name, or terminal). If you want to find only items that match *all* of the arguments on the command line, you must use the '-strict-match' option. For example, to list all of the executions of command a.out by user root on terminal tty0, type:

    lastcomm --strict-match a.out root tty0

    The order of the arguments is not important.

    For each entry the following information is printed:
       + command name of the process
       + flags, as recorded by the system accounting routines:
            S -- command executed by super-user
            F -- command executed after a fork but without a following exec
            C -- command run in PDP-11 compatibility mode (VAX only)
            D -- command terminated with the generation of a core file
            X -- command was terminated with the signal SIGTERM
       + the name of the user who ran the process
       + time the process exited  

    OPTIONS

    . .PD 0
    --strict-match
    Print only entries that match *all* of the arguments on the command line.
    --user name
    List records for user with name. This is useful if you're trying to match a username that happens to be the same as a command (e.g., ed ).
    --command name
    List records for command name.
    --tty name
    List records for tty name.
    -f filename, --file filename
    Read from the file filename instead of acct
    --debug
    Print verbose internal information.
    -V, --version
    Print the version number of lastcomm.
    -h, --help
    Prints the usage string and default locations of system files to standard output and exits.

     

    FILES

    acct
    The system wide process accounting file. See acct(5) (or pacct(5)) for further details.

     

    AUTHOR

    The GNU accounting utilities were written by Noel Cragg <[email protected]>. The man page was adapted from the accounting texinfo page by Susan Kleinmann <[email protected]>.  

    SEE ALSO

    last(1), acct(5)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    OPTIONS
    FILES
    AUTHOR
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру