userinfo: User / Group Info

userinfoR Documentation

User / Group Info

Description

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

Usage

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

# Get info current user
user_info()
group_info()

unix documentation built on Oct. 4, 2024, 5:08 p.m.

Related to userinfo in unix...