Skip to content

users Command Cheat Sheet

users prints the user names of users currently logged in.


Synopsis

users [option] [file]

Usage

users
# Output:
# faruk root activeUser

Comparison

Command Output Detail Level
users Single line, space separated Low
who One line per user, with TTY/Time Medium
w One line per user + current activity/load High

Notes

  • Source: Reads from /var/run/utmp (or /etc/utmp).
  • File Argument: You can verify a specific wtmp or utmp file.
    users /var/log/wtmp