{
    "mode": "man",
    "parameter": "RUSHLAST",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/RUSHLAST/1/json",
    "generated": "2026-06-12T07:29:55Z",
    "synopsis": "rushlast  [-Hh]  [-F  STRING] [-f DIR] [-n NUMBER] [--file=DIR] [--format=STRING] [--forward]\n[--help] [--no-header] [--number=NUMBER] [--usage] [--version] [USER...]",
    "sections": {
        "NAME": {
            "content": "rushlast - show listing of last Rush logins\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rushlast  [-Hh]  [-F  STRING] [-f DIR] [-n NUMBER] [--file=DIR] [--format=STRING] [--forward]\n[--help] [--no-header] [--number=NUMBER] [--usage] [--version] [USER...]\n",
            "subsections": []
        },
        "NOTE": {
            "content": "This manpage is a short description of rushlast.  For a detailed discussion, including  exam‐\nples  and  usage  recommendations,  refer  to the manual GNU Rush -- a restricted user shell,\navailable in texinfo format.  If the info reader and the rush documentation are properly  in‐\nstalled on your system, the command\n\ninfo rushlast\n\nshould give you access to the complete manual.\n\nYou  can  also view the manual using the info mode in emacs(1), or find it in various formats\nonline at\n\nhttp://www.gnu.org.ua/software/rush/manual\n\nIf any discrepancies occur between this manpage and the Manual, the later shall be considered\nthe authoritative source.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Searches  back  through  the GNU Rush database and displays a list of all user sessions since\nthe database was created.\n\nThe utility operates on the default accounting database, which is maintained only if  rush(1)\nruns in accounting mode.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-F --format=",
                    "content": "Use  STRING  instead of the default format.  Use STRING instead of the default format.\nSee the section FORMAT, for a detailed discussion of the format syntax.  If the STRING\nbegins  with  a @, then this character is removed from it, and the resulting string is\nregarded as a name of the file to read.  The file is read literally, except that lines\nbeginning with a semicolon are ignored.\n",
                    "flag": "-F"
                },
                {
                    "name": "-f --file=",
                    "content": "Look for database files in DIR.\n",
                    "flag": "-f"
                },
                {
                    "name": "--forward",
                    "content": "Show entries in chronological order.\n",
                    "long": "--forward"
                },
                {
                    "name": "-H --no-header",
                    "content": "Do not display header line.\n",
                    "flag": "-H",
                    "long": "--no-header"
                },
                {
                    "name": "-n --count=",
                    "content": "Show at most NUMBER records.\n\nOther options\n",
                    "flag": "-n"
                },
                {
                    "name": "-h --help",
                    "content": "Give this help list.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--usage",
                    "content": "Give a short usage message.\n",
                    "long": "--usage"
                },
                {
                    "name": "--version",
                    "content": "Print program version.\n",
                    "long": "--version"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "RUSHLASTFORMAT\nWhen  set,  supplies  a  format  string to use instead of the built-in format.  If the\nvalue begins with a @ sign, rest of characters is treated as the name of file to  read\nthe format from, similarly to the --format option, which see.\n\nThe precedence rule for format selection is:\n\n1.     The --format option.\n\n2.     The RUSHLASTFORMAT environment variable.\n\n3.     Built-in format.\n",
            "subsections": []
        },
        "FORMATS": {
            "content": "The  format string supplied with the -F (--format) option controls the output of every record\nfrom the GNU Rush accounting database.  It consists of the following classes of objects:\n\nOrdinary characters\nThese are copied to the output verbatim.\n\nEscapes\nAn escape is a backslash, followed by a single character.  It is interpreted according\nto the following table:\n\nSequence    Replaced with\n\\a          Audible bell character (ASCII 7)\n\\b          Backspace character (ASCII 8)\n\\e          Escape character (ASCII 27)\n\\f          Form-feed character (ASCII 12)\n\\n          Newline character (ASCII 10)\n\\r          Carriage return character (ASCII 13)\n\\t          Horizontal tabulation character (ASCII 9)\n\\v          Vertical tabulation character (ASCII 11)\n\\\\          A single backslash\n\\\"          A double-quote.\n\nAny escape not listed in the table above results in its second character being output.\n\nQuoted strings\nStrings  are  delimited  by single or double quotes.  Within a string escape sequences\nare interpreted as described above.\n\nFormat specifications\nFormat specification can be regarded as a kind of function, which outputs a particular\npiece  of  information  from the database record.  Syntactically, format specification\nstarts with an opening brace and ends with a closing brace.  The first word after  the\nbrace  is  the  name of the specification.  The rest of words are positional arguments\nfollowed by keyword arguments.  Both are optional.  A keyword argument begins  with  a\ncolon.\n\nThe available format specifications are:\n\n(newline [COUNT])\nCauses  the  newline  character to be output.  If the optional count is supplied, that\nmany newlines will be printed\n\n(tab [COUNT])\nAdvance to the next tab stop in the output stream.  If optional COUNT is present, then\nskip that many tab stops.  Each tab stop is eight characters long.\n\nThe  following  specifications  output particular fields of a database record.  They all take\ntwo positional arguments: WIDTH and TITLE.\n\nThe first argument, WIDTH sets the maximum output length for this specification.  If the num‐\nber of characters actually output is less than the width, they will be padded with whitespace\neither to the left or to the right, depending on the presence of the :right keyword argument.\nIf  the  number of characters is greater than WIDTH, they will be truncated to fit.  If WIDTH\nis not given, the exact data are output as is.\n\nThe second argument, TITLE, gives the title of this column for the heading line.  By  default\nno title is output.\n\nEvery  field specification accepts at least two keyword arguments.  The keyword :right may be\nused to request alignment to the right for the data.  This keyword is ignored if WIDTH is not\ngiven.\n\nThe  keyword  :empty followed by a string causes the program to output that string if the re‐\nsulting value for this specification would otherwise be empty.\n\n(user WIDTH TITLE [:empty REPL][:right])\nPrint the user login name.\n\n(start-time WIDTH TITLE [:empty REPL][:right][:format DATE-FORMAT])\nDate and time when the session started.\n\nThe :format keyword introduces the strftime(3) format string to be used when  convert‐\ning the date for printing.  The default value is \"%a %H:%M\".\n\n(stop-time WIDTH TITLE [:empty REPL][:right][:format DATE-FORMAT])\nTime when the command finished.  If it is still running, the word running is output.\n\n(duration WIDTH TITLE [:empty REPL][:right])\nTotal time of the session duration.\n\n(rule WIDTH TITLE [:right])\nThe tag of the rule that was used to serve the user.\n\n(command WIDTH TITLE [:empty REPL][:right])\nCommand line being executed.\n\n(pid WIDTH TITLE [:right])\nPID of the process.\n\nThe default format is:\n\n(user 10 Login)\" \"\n(rule 8 Rule)\" \"\n(start-time 0 Start)\" \"\n(stop-time 0 Stop)\" \"\n(duration 7 Time)\" \"\n(command 32 Command)\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "rush(1), rushwho(1).\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Sergey Poznyakoff\n",
            "subsections": []
        },
        "BUG REPORTS": {
            "content": "Report bugs to <bug-rush@gnu.org.ua>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2016 Sergey Poznyakoff\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n\n\n\nRUSHLAST                                   August 17, 2016                               RUSHLAST(1)",
            "subsections": []
        }
    },
    "summary": "rushlast - show listing of last Rush logins",
    "flags": [
        {
            "flag": "-F",
            "long": null,
            "arg": null,
            "description": "Use STRING instead of the default format. Use STRING instead of the default format. See the section FORMAT, for a detailed discussion of the format syntax. If the STRING begins with a @, then this character is removed from it, and the resulting string is regarded as a name of the file to read. The file is read literally, except that lines beginning with a semicolon are ignored."
        },
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "Look for database files in DIR."
        },
        {
            "flag": "",
            "long": "--forward",
            "arg": null,
            "description": "Show entries in chronological order."
        },
        {
            "flag": "-H",
            "long": "--no-header",
            "arg": null,
            "description": "Do not display header line."
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": "Show at most NUMBER records. Other options"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Give this help list."
        },
        {
            "flag": "",
            "long": "--usage",
            "arg": null,
            "description": "Give a short usage message."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print program version."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "rush",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/rush/1/json"
        },
        {
            "name": "rushwho",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/rushwho/1/json"
        }
    ]
}