LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lid

Display a user's groups or a group's users

TLDR

List groups for a user
$ sudo lid [username]
copy
List users in a group
$ sudo lid -g [groupname]
copy
List groups for the current user
$ sudo lid
copy

SYNOPSIS

lid [options] [name]

DESCRIPTION

lid displays a user's groups or a group's users. It reads from the system's user and group databases to show membership information. Without arguments, it shows groups for the current user.

PARAMETERS

-g, --group

Treat the argument as a group name and list its members
name
User or group name to query (user by default)

INSTALL

sudo dnf install libuser
copy
sudo apk add libuser
copy
sudo zypper install libuser
copy

CAVEATS

Requires root privileges to access all group membership information. Part of the libuser library tools for user and group account management.

SEE ALSO

groups(1), id(1), getent(1), gpasswd(1), groupmems(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