users Command
Purpose
Displays a compact list of the users currently logged on to the system.
Syntax
users [ FileName | WparName ]
Description
The users command lists the login names of the users that are currently logged on to the system to standard output (stdout) in a compact, one-line list format. If you specify absolute path name of a file, then it is used as an alternate file instead of /etc/utmp. If you do not specify an absolute path name, it is considered to be the name of a workload partition. If the name is "Global", it indicates the global environment.
Files
Item | Description |
---|---|
/etc/utmp | Contains list of current users. |
/usr/bin/users | Contains the users command. |
Note: The /etc/utmp file for
a particular workload partition can
be indicated by prefixing the root path for the workload partition.