csv-groups - list system groups in CSV format
csv-groups [OPTION]…
Print to standard output the list of system groups in the CSV format.
name | type | description | level |
---|---|---|---|
name | string | name | 0 |
gid | int | group id | 0 |
passwd | string | password | 1 |
passwd column comes from /etc/group, so it is useless on modern systems, as a real password is stored somewhere else and is not visible to normal users.
csv-groups -s
csv-groups -T -N grp | csv-users -M | csv-sqlite -T 'select user.name as user_name, grp.name as group_name from user, grp where user.gid = grp.gid' -s
csv-users(1), csv-group-members(1), csv-show(1), csv-nix-tools(7)