HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lid — Display a user's groups or a group's users. More information: <https://manned.org/lid>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgroupusersclilidusergroupsdisplay
linux

Problem

How to use the lid command: Display a user's groups or a group's users. More information: <https://manned.org/lid>.

Solution

lid — Display a user's groups or a group's users. More information: <https://manned.org/lid>.

List primary and secondary groups of a specific user:
sudo lid {{username}}


List users of a specific group:
sudo lid --group {{group_name}}

Code Snippets

List primary and secondary groups of a specific user

sudo lid {{username}}

List users of a specific group

sudo lid --group {{group_name}}

Context

tldr-pages: linux/lid

Revisions (0)

No revisions yet.