userinfo: User / Group Info

Description Usage Arguments References Examples

Description

Lookup a user or group info via user uid/name or group gid/name.

Usage

1
2
3
user_info(uid = getuid())

group_info(gid = getgid())

Arguments

uid

user ID (integer) or name (string)

gid

group ID (integer) or name (string)

References

GETPWNAM(3) GETGRNAM(3)

Examples

1
2
3
# Get info current user
user_info()
group_info()

unix documentation built on May 29, 2017, 1:37 p.m.