Name

users [filename] — coreutils

Synopsis

/usr/bin stdin stdout - file -- opt --help --version

The users command prints a quick listing of users who have login sessions. If a user is running multiple shells, she appears multiple times.

$ users
barrett jones smith smith smith

Like the who command, users reads /var/log/utmp by default but can read from another supplied file instead.

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.