Man page - lastcomm(1)

Packages contains this manual

Available languages:

en es fi ro

Manual

LASTCOMM

NIMI
YLEISKATSAUS
KUVAUS
VALITSIMET
TIEDOSTOT
TEKIJÄ
KATSO MYÖS
KÄÄNNÖS

NIMI

lastcomm - tulosta tietoa aiemmin suoritetuista komennoista.

YLEISKATSAUS

lastcomm

[ komennonnimi ... ]
[ kÀyttÀjÀnimi ... ]
[ pÀÀte ... ]
[ VALITSIN ... ]

KUVAUS

lastcomm tulostaa tietoa aiemmin suoritetuista komennoista. Jos komennolle ei ole annettu optioita, lastcomm tulostaa tiedostosta /var/log/pacct kaikki tallennetut tiedot suoritetuista komennoista. Jos komentoa kutsutaan parametrein komennonnimi, kĂ€yttĂ€jĂ€nimi tai pÀÀte vain mÀÀritelmiin tĂ€smÀÀvĂ€t tietueet nĂ€ytetÀÀn. Esimerkiksi nĂ€hdĂ€ksesi ketkĂ€ suorittivat komennon ‘a.out’ tai olivat kirjautuneena pÀÀtteellĂ€ ‘tty0’, anna komento:

lastcomm a.out tty0

Komento tulostaa tietueet jotka koskevat suoritettua komentoa ‘a.out’ tai komentoja jotka suoritettiin pÀÀtteeltĂ€ ‘tty0’, molempien ehtojen ei tarvitse siis tĂ€smĂ€tĂ€ yhtĂ€aikaa. KĂ€ytĂ€ ’-strict-match’ optiota, jos haluat ettĂ€ tietueiden on tĂ€smĂ€ttĂ€vĂ€ kaikkiin annettuihin ehtoihin. Esimerkiksi tulostaaksesi kaikki kĂ€yttĂ€jĂ€n root kĂ€ynnistĂ€mĂ€t a.out komennot pÀÀtteellĂ€ tty0, anna komento:
lastcomm --strict-match --command a.out --user root --tty tty0

Parametrien jÀrjestys on merkityksetön.

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 started

VALITSIMET

--strict-match

Tulostaa ainoastaan jokaiseen annettuun ehtoon tÀsmÀÀvÀt tietueet.

--print-controls

Print control characters.

--user nimi

Tulostaa tietueet kÀyttÀjÀstÀ nimi . TÀmÀ on on kÀytÀnnöllinen, jos kÀyttÀjÀnimi on sama kuin jokin komento.

--command komento

Tulostaa tietueet komennolle komento.

--tty pÀÀte

Tulostaa tietueet pÀÀtteelle pÀÀte.

--forwards

Read file forwards instead of backwards. This avoids trying to seek on the file and can be used to read from a pipe. This must be specified prior to any -f arguments.

-f tiedosto, --file tiedosto

Read from the file filename instead of acct. A filename of "-" will result in reading from stdin. This must either be the first -f option, or --forwards must precede all -f options.

--ahz hz

Use this flag to tell the program what AHZ should be (in hertz). This option is useful if you are trying to view an acct file created on another machine which has the same byte order and file format as your current machine, but has a different value for AHZ.

-p, --show-paging

Print paging statistics.

--pid

Show PID and PPID of the process if acct version 3 format is supported by kernel.

--pid

Add pid of the process and pid of the process parent to the output (pid is the last but one and parent pid the last column). These values are shown only when they are generated by acct function (depends on the version of kernel)

--debug

Tulosta ohjelman sisÀistÀ virheenjÀljitys tietoa.

-V, --version

Tulosta lastcomm :n versionumero.

-h, --help

Tulostaa kÀyttöohjeen vakiotulosteena ja poistuu ohjelmasta.

TIEDOSTOT

acct

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

This directory contains pacct files which contain the binary process accounting data as written by the kernel.

TEKIJÄ

GNU accounting apuohjelmat kirjoitti Noel Cragg <noel@gnu.ai.mit.edu>. Englanninkielinen ohje oli mukailtu Susan Kleinmannin (<sgk@sgk.tiac.net>) tekemÀstÀ texinfo sivusta.

KATSO MYÖS

last (1), acct (5)

KÄÄNNÖS

TÀmÀn kÀsikirjan suomenkielisen kÀÀnnöksen tekivÀt Tuomo PyhÀlÀ <tuomo@lesti.kpnet.fi>
TÀmÀ kÀÀnnös on ilmainen dokumentaatio; katso tekijÀnoikeusehdot GNU General Public License -versiosta 3 tai uudemmasta. Emme ota vastuuta.