← 返回命令列表

Linux command

lid.libuser 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo lid [username]

Example

sudo lid --group [group_name]

说明

lid displays information about group membership on Linux systems. By default, it shows all groups containing a specified user (or the invoking user if no name is given). With the -g option, it reverses this behavior to show all users within a specified group. Part of the libuser library tools, lid reads from the system's user and group databases. It requires root privileges to query membership information for other users or groups.

参数

-g, --group
List users belonging to a group instead of groups containing a user
-i, --interactive
Prompt for all configuration questions when accessing the user database
-n, --onlynames
Display only names without corresponding numeric IDs

FAQ

What is the lid.libuser command used for?

lid displays information about group membership on Linux systems. By default, it shows all groups containing a specified user (or the invoking user if no name is given). With the -g option, it reverses this behavior to show all users within a specified group. Part of the libuser library tools, lid reads from the system's user and group databases. It requires root privileges to query membership information for other users or groups.

How do I run a basic lid.libuser example?

Run `sudo lid [username]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -g, --group do in lid.libuser?

List users belonging to a group instead of groups containing a user