Listing all groups in Linux


December 8, 2023

All groups which exists in Linux can be found in /etc/group.

$ cat /etc/group
root:x:0:
wheel:x:1:wilson
kmem:x:2:
tty:x:3:
messagebus:x:4:
disk:x:6:
audio:x:17:
 ...
nogroup:x:65534:

To list the groups of which current user is member of, use groups command.

$ groups
users wheel networkmanager podman

Thanks for reading. More like this?

#til #linux

© 2023-2025 Wilson Husin

This site was last updated 2025-05-17T20:42:58-0700.

:wq