Learn R Programming

fs (version 1.0.0)

id: Lookup Users and Groups on a system

Description

These functions use the GETPWENT(3) and GETGRENT(3) system calls to query users and groups respectively.

Usage

group_ids()

user_ids()

Arguments

Value

They return their results in a data.frame. On windows both functions return an empty data.frame because windows does not have user or group ids.

Examples

Run this code
# NOT RUN {
# list all groups
group_ids()

# list all users
user_ids()
# }

Run the code above in your browser using DataLab