users

Display a list of logged in users. See also: useradd, userdel, usermod. More information: <https://www.gnu.org/software/coreutils/users>.

Install

All systems
curl cmd.cat/users.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/users users powered by Commando

Display a list of logged in users. See also: useradd, userdel, usermod. More information: <https://www.gnu.org/software/coreutils/users>.

  • Print logged in usernames:
    users
  • Print logged in usernames according to a given file:
    users /var/log/wmtp

© tl;dr; authors and contributors