w

Show who is logged on and what they are doing. Print user login, TTY, remote host, login time, idle time, current process. More information: <https://manned.org/w>.

Arch Arch Linux
RUN pacman -S --noconfirm procps-ng
CentOS
RUN yum install -y procps-ng
Fedora
RUN dnf install -y procps-ng
click the source code to copy install w on any operating system with command-not-found.com