groups

Print group memberships for a user. See also: groupadd, groupdel, groupmod. More information: <https://www.gnu.org/software/coreutils/groups>.

Debian Debian
RUN apt-get update && \ apt-get install -y coreutils
Ubuntu
RUN apt-get update && \ apt-get install -y coreutils
Alpine
RUN apk add shadow
Arch Arch Linux
RUN pacman -S --noconfirm shadow
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y coreutils
CentOS
RUN yum install -y coreutils
Fedora
RUN dnf install -y coreutils
Raspbian
RUN apt-get update && \ apt-get install -y coreutils
click the source code to copy install groups on any operating system with command-not-found.com