lid(1)

πŸ’– lid β€” bestie edition πŸ’–

okay so you know how you're always like "wait what groups am i even in??" β€” that's literally this. it's lid(1), a General Commands Manual page, and it's here to spill the tea on groups and users. 🫢


✨ NAME ✨

lid β€” Display user's groups or group's users

like the glow-up of "who's in what" πŸŽ€


🌸 SYNOPSIS 🌸

lid [OPTION]... [name]

that's it. that's the whole vibe. one little name and some options and you're done πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

lid shows you info about the groups that contain a user called name, or the users that are contained in a group called name. it's giving mutuals. it's giving "who's in this group chat" energy. 😭

by default, lid lists the groups containing name, or β€” if you didn't pass a name at all β€” the groups containing the invoking user, aka you, the main character. πŸ‘‘

but wait, there's a plot twist: you can flip the whole mode of operation with the -g option. so instead of "what groups am i in" it becomes "who's in this group". two icons, one command. ✨


πŸ’… OPTIONS πŸ’…

  • -g, --group β€” list the users in a group called name instead of the other way around. and if you don't pass a name, it lists the users in the invoking user's primary group. lowkey iconic. 🌈
  • -i, --interactive β€” asks you all the questions when it's connecting to the user database, even if there are default answers already set up in the libuser configuration. like it does not care that defaults exist, it wants to chat. πŸ™ˆ
  • -n, --onlynames β€” lists only the group names or user names. by default the corresponding user or group IDs get listed too, so this is the "just the names bestie, i don't need the numbers" option. ⭐

πŸ”₯ EXIT STATUS πŸ”₯

  • 0 β€” success, we ate πŸ’–
  • 1 β€” error, not the vibe 😭
no cap, that's the entire exit status situation. 0 for slay, 1 for oh no.

πŸ‘‘ SEE ALSO πŸ‘‘

nothing else listed here bestie, this page is self-sufficient and honestly? respect. πŸ’œ


okay so the fine print: this beauty comes from libuser, and the page is dated Dec 6 2007 β€” yes she's been serving since 2007 and she's still that girl. πŸ§šβ€β™€οΈ bye bestie, go check your groups πŸ’–