GNU Rush |
|
Restricted User Shell |
Sergey Poznyakoff |
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
The login name of the user.
The tag of the rule he is served under (see tag).
Time when the rule began execution.
Time when the command finished, or the word ‘running’ if it is still running.
Duration of the session.
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).
This section summarizes the command line options understood by
rushlast
utility.
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).
Use database directory dir, instead of the default. By default, database files are located in /usr/local/var/rush.
Display entries in chronological order, instead of the reverse chronological one, which is the default.
Show at most number records. The form -number is provided for compatibility with the last(1) utility.
Do not display header line.
Display program version.
Display a short help message.
Display a concise usage summary.
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.