Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dump-acct(8) [debian man page]

DUMP-ACCT(8)						     GNU Accounting Utilities						      DUMP-ACCT(8)

NAME
dump-acct - print an acct file in human-readable format. SYNOPSIS
dump-acct [-r|--reverse] [-R|--raw] [--format] version] [--byteswap] [--ahz] hertz] [-n|--num recs] [-h|--help] [ files] DESCRIPTION
dump-acct filename prints a list of all executed processes. This list is written by the kernel which must be compiled with BSD process accounting enabled (Debian kernel image have it already enabled). It must be started with accton(5). Note that on Debian systems, this is ensured via the init script /etc/init.d/acct. All fields are separated by vertical line. Fields are: command, version, user time, system time, effective time, uid, gid, memory, io, pid, ppid, time. User, system and effective times are ticks per second. One tick is usually 1/50 of a second. The time field shows the start time of the process. The --raw switch, as well as the --format, --byteswap, and --ahz can be used as a handy format converter. OPTIONS
-h, --help Prints the usage string and default locations of system files to standard output and exits. -n, --num recs Number of lines to print. -r, --reverse Start printing from last records. -R, --raw Print raw records, not human-readable. --format version Use specified format version to display records. --byteswap Swap bytes endianness when reading records. --ahz Use specified units of time to display data from other kernel versions and architectures. FILES
acct The system wide process accounting file. See acct(5) for further details. SEE ALSO
acct(5), ac(8). AUTHOR
The GNU accounting utilities were written by Noel Cragg <noel@gnu.ai.mit.edu>. This manual page was written by Ognyan Kulev <ogi@fmi.uni-sofia.bg> and updated by Daniel Baumann <daniel@debian.org> and Mathieu Trudel <mathieu.tl@gmail.com> for the Debian project (but may be used by others). 6.4pre1 2006-04-22 DUMP-ACCT(8)

Check Out this Related Man Page

LASTCOMM(1)						      General Commands Manual						       LASTCOMM(1)

NAME
lastcomm - print out information about previously executed commands. SYNOPSIS
lastcomm [ command-name ... ] [ user-name ... ] [ terminal-name ... ] [ --strict-match ] [ --forwards ] [ -f filename | --file filename ] [ --ahz hz ] [ --user name ] [ --command name ] [ --tty name ] [ | --show_paging ] [ --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 --command a.out --user root --tty 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 started OPTIONS
--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. --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 filename, --file filename 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 cre- ated 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 --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. /var/log/account This directory contains pacct files which contain the binary process accounting data as written by the kernel. AUTHOR
The GNU accounting utilities were written by Noel Cragg <noel@gnu.ai.mit.edu>. The man page was adapted from the accounting texinfo page by Susan Kleinmann <sgk@sgk.tiac.net>. SEE ALSO
last(1), acct(5) 1995 October 31 LASTCOMM(1)
Man Page