id

    Print the current process credentials on Linux.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.1
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    9

    #id

    Print the current process credentials on Linux.

    #Usage

    moonx cli/id -G

    #Common options

    OptionDescription
    -u, --userPrint only the user ID.
    -g, --groupPrint only the group ID.
    -G, --groupsPrint all group IDs.
    -r, --realSelect the real user or group ID.
    -n, --namePrint names from the local account database.
    -z, --zeroTerminate entries with NUL.
    --helpShow help.
    --versionShow the version.

    #Notes

    Linux reads real and effective IDs and supplementary groups from procfs. The default report resolves local account names. It requires matching real/effective groups and either POSIXLY_CORRECT or a kernel without SELinux/SMACK filesystems. Named-user and external directory lookups remain unsupported.

    See the compatibility guide for the supported profile.

    Source Files