csv-users

NAME

csv-users - list system users in CSV format

SYNOPSIS

csv-users [OPTION]…

DESCRIPTION

Print to standard output the list of system users in the CSV format.

-c, --columns=NAME1[,NAME2…]
choose the list of columns
-l
use a longer listing format (can be used up to 2 times)
-M, --merge
merge output with a CSV stream in table form from standard input
-N, --table-name NAME
produce output as table NAME
-s, --show
print output in table format
-S, --show-full
print output in table format with pager
-T, --as-table
produce output as table user
--help
display this help and exit
--version
output version information and exit

COLUMNS

name type description level
name string name 0
uid int user id 0
gid int default group id 0
dir string home directory 0
shell string login shell 0
gecos string real name / contact information 1
passwd string password 2

passwd column comes from /etc/passwd, so it is useless on modern systems, as a real password is stored somewhere else and is not visible to normal users.

EXAMPLES

csv-users -s
print system users
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
print user names and the group name of their default group

SEE ALSO

csv-groups(1), csv-group-members(1), csv-show(1), csv-nix-tools(7)