LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

users

List currently logged-in usernames

TLDR

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

SYNOPSIS

users [file]

DESCRIPTION

users prints a compact, space-separated list of usernames currently logged into the system. If a user has multiple login sessions, their name appears once for each session.The command reads from /var/run/utmp by default to determine who is logged in. An alternate utmp-format file can be specified as an argument, such as /var/log/wtmp to see historical logins.Unlike who and w, which provide detailed information about each session, users produces minimal output suitable for quick checks or scripting where only the list of logged-in usernames is needed.

PARAMETERS

file

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

INSTALL

sudo apt install coreutils
copy
sudo dnf install coreutils
copy
sudo pacman -S coreutils
copy
sudo apk add coreutils
copy
sudo zypper install coreutils
copy
brew install coreutils
copy
nix profile install nixpkgs#coreutils
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid