users
user managementLinux/Unix
The users command is one of the most frequently used commands in Linux/Unix-like operating systems. users Print the usernames of users currently logged in
Quick Reference
Command Name:
users
Category:
user management
Platform:
Linux/Unix
Basic Usage:
users [options] [arguments]
Common Use Cases
Syntax
users [OPTION]... [FILE]
Options
Option | Description |
---|---|
--help |
Display help message and exit |
--version |
Output version information and exit |
If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common.
Examples
How to Use These Examples
The examples below show common ways to use the users
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
# Display all users currently logged in
users