l

listusers(1)

listusers(1)

NAME

listusers - display user login data

SYNOPSIS

listusers [-g groups] [-l logins]

DESCRIPTION

The listusers command displays data concerning user logins. The output shows the user login and the /etc/passwd comment ®eld value (e.g., user name, etc.). The default displays data about all user logins.

Options

The listusers command supports the following options:

-ggroups Display all users belonging to groups, sorted by login. A comma separated list speci®es multiple groups.

-llogins Display the requested logins. A comma separated list speci®es multiple logins.

A user login has a UID of 100 or greater.

When the -land -goptions are combined, a user login is only displayed once, even though the login may belong to multiple speci®ed groups.

EXAMPLES

List all user logins.

listusers

List all user logins in the group cmds and the users bob, john and otto, removing all duplicates.

listusers -g cmds -l bob,john,otto

FILES

/etc/passwd

/etc/group

SEE ALSO

passwd(1), logins(1M), group(4), passwd(4).

STANDARDS COMPLIANCE

listusers: SVID3

Section 1452

− 1 −

HP-UX Release 11i: December 2000