listusers(1)listusers(1)NAMElistusers - Lists user login information
SYNOPSISlistusers [-ggroups] [-llogins]
OPTIONS
Displays the login names and associated data of all the users belonging
to the group groups. The groups operand can also be specified as a
comma separated list of groups. Displays the login name and associated
data of the user or users specified by logins. Specify logins as a
comma separated list of login names for multiple users.
DESCRIPTION
When it is executed without any options, listusers displays all user
logins, sorted by login name. Each line displays the login ID, followed
by the account field from the /etc/passwd file.
The options limit the display to specific login names or group names.
When listusers is executed in an NIS environment (client or master),
listusers displays all local and distributed users, sorted by login
name.
It is not possible to select only local users or distributed users;
listusers always displays both.
NOTES
The listusers command displays all user login names.
You can combine the -g and the -l options, but the user login names are
listed only once, even if a given user belongs to multiple groups. A
user login specified with the -l option is listed even when it is not a
member of the group or groups specified with the -g option.
EXAMPLES
The following example shows how to display all login names for your
system. $ listusers
The following example shows how to display the user with the login name
vp. $listusers -l vp
The following example shows how to display the users with the login
names jr, dl, and jh. $ listusers-l jr,dl,jh The following example
shows how to display all the users in the group mygroup. $ listusers-g mygroup The following example shows how to display all the users in
the group mygroup and the users whose login names are bt and vp. $
listusers-g mygroup -l bt,vp
FILES
The listusers command operates on the user and group databases for the
given level of system security.
SEE ALSO
Commands: groups(8), logins(8)listusers(1)