O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

users — stdin  stdout  - file  -- opt  --help  --version

Synopsis

users [filename]

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required