Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference (Volume 1 of 9): Section 1: User Commands (A-M) > l

listusers(1)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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 field value (e.g., user name, etc.). The default displays data about all user logins.

Options

The listusers command supports the following options:

-g groups

Display all users belonging to groups, sorted by login. A comma separated list specifies multiple groups.

-l logins

Display the requested logins. A comma separated list specifies multiple logins.

A user login has a UID of 100 or greater.

When the -l and -g options are combined, a user login is only displayed once, even though the login may belong to multiple specified 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

STANDARDS COMPLIANCE

listusers: SVID3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2000 Hewlett-Packard Development Company, L.P.