coreutils: users invocation
1
1 20.5 ‘users’: Print login names of users currently logged in
1 ============================================================
1
1 ‘users’ prints on a single line a blank-separated list of user names of
1 users currently logged in to the current host. Each user name
1 corresponds to a login session, so if a user has more than one login
1 session, that user’s name will appear the same number of times in the
1 output. Synopsis:
1
1 users [FILE]
1
1 With no FILE argument, ‘users’ extracts its information from a
1 system-maintained file (often ‘/var/run/utmp’ or ‘/etc/utmp’). If a
1 file argument is given, ‘users’ uses that file instead. A common choice
1 is ‘/var/log/wtmp’.
1
11 The only options are ‘--help’ and ‘--version’. ⇒Common
options.
1
1 The ‘users’ command is installed only on platforms with the POSIX
1 ‘<utmpx.h>’ include file or equivalent, so portable scripts should not
1 rely on its existence on non-POSIX platforms.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1