LinuxCommandLibrary

users

TLDR

Show logged in users

$ users
copy
From specific file
$ users [/var/log/wtmp]
copy

SYNOPSIS

users [file]

DESCRIPTION

users shows logged in users. It lists usernames.
Simple output. Space-separated names.
Current sessions. Who's logged in.
Reads utmp. Login database.
Minimal information. Names only.

PARAMETERS

file

Alternate utmp file.
--help
Show help.
--version
Show version.

CAVEATS

Simple output. Use who for details. Current logins only.

HISTORY

users is a standard Unix command that outputs a compact list of users currently logged into the system.

SEE ALSO

who(1), w(1), last(1), whoami(1)

Copied to clipboard