{
    "mode": "info",
    "parameter": "users",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/users/json",
    "generated": "2026-08-07T04:57:40Z",
    "sections": {
        "File: coreutils.info,  Node: users invocation,  Next: who invocation,  Prev: groups invocation,  Up: User information": {
            "content": "",
            "subsections": [
                {
                    "name": "20.5 'users': Print login names of users currently logged in",
                    "content": "'users' prints on a single line a blank-separated list of user names of\nusers currently logged in to the current host.  Each user name\ncorresponds to a login session, so if a user has more than one login\nsession, that user's name will appear the same number of times in the\noutput.  Synopsis:\n\nusers [FILE]\n\nWith no FILE argument, 'users' extracts its information from a\nsystem-maintained file (often '/var/run/utmp' or '/etc/utmp').  If a\nfile argument is given, 'users' uses that file instead.  A common choice\nis '/var/log/wtmp'.\n\nThe only options are '--help' and '--version'.  *Note Common\noptions::.\n\nThe 'users' command is installed only on platforms with the POSIX\n'<utmpx.h>' include file or equivalent, so portable scripts should not\nrely on its existence on non-POSIX platforms.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n"
                }
            ]
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}