GNU Rush – a restricted user shell (split by chapter):   Section:   Chapter:FastBack: Rushwho   Up: Top   FastForward: Accounting Database   Contents: Table of ContentsIndex: Concept Index

10 The rushlast utility.

The rushlast utility searches back through the GNU Rush database and displays a list of all user sessions since the database was created. By default, it displays the following information:

Login Rule  Start     Stop      Time  Command
gray  rsync Sun 20:43 Sun 20:43 05:57 /usr/bin/rsync /upload
jeff  sftp  Sun 20:09 running   07:17 /bin/sftp-server
Login

The login name of the user.

Rule

The tag of the rule he is served under (see tag).

Start

Time when the rule began execution.

Start

Time when the command finished, or the word ‘running’ if it is still running.

Time

Duration of the session.

Command

Command line being executed.

This format is a built-in default. It may be changed either by setting the RUSHLAST_FORMAT environment variable to the desired format string, or by using --format command line option (see Rushlast Options).

10.1 Rushlast Options

This section summarizes the command line options understood by rushlast utility.

-F string
--format=string

Use string instead of the default format, described in Rushwho. See Formats, for a detailed description of the output format syntax. To read format from a file, use --format=@filename. The file is read literally, except that lines beginning with ‘;’ are ignored (they can be used to introduce comments).

-f dir
--file=dir

Use database directory dir, instead of the default. By default, database files are located in /usr/local/var/rush.

--forward

Display entries in chronological order, instead of the reverse chronological one, which is the default.

-n number
--count=number
-number

Show at most number records. The form -number is provided for compatibility with the last(1) utility.

-H
--no-header

Do not display header line.

-v
--version

Display program version.

-h
--help

Display a short help message.

--usage

Display a concise usage summary.

GNU Rush – a restricted user shell (split by chapter):   Section:   Chapter:FastBack: Rushlast   Up: Rushlast   FastForward: Accounting Database   Contents: Table of ContentsIndex: Concept Index