userinfo {unix}R 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()

[Package unix version 1.5.8 Index]