rust-id(1)

rust-id1

Print user and group information for each specified `user`, or (when `user` omitted) for the current user.

Usage

id [-A] [{-u | --user}] [{-g | --group}] [{-G | --groups}] [-p] [{-n | --name}] [-P] [{-r | --real}] [{-z | --zero}] [{-Z | --context}] [{-h | --help}] [{-V | --version}] [USER]

Overview

Print user and group information for each specified `USER`, or (when `USER` omitted) for the current user.

Options

-A

Display the process audit user ID and other process audit properties, which requires privilege (not available on Linux).

-u, --user

Display only the effective user ID as a number.

-g, --group

Display only the effective group ID as a number

-G, --groups

Display only the different group IDs as white-space separated numbers, in no particular order.

-p

Make the output human-readable. Each display is on a separate line.

-n, --name

Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.

-P

Display the id as a password file entry.

-r, --real

Display the real ID for the -G, -g and -u options instead of the effective ID.

-z, --zero

delimit entries with NUL characters, not whitespace; not permitted in default format

-Z, --context

print only the security context of the process (not enabled)

-h, --help

Print help

-V, --version

Print version

[USER]

Version

v0.0.30

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

-A since Debian 13 (Trixie); -P since Debian 13 (Trixie); -V since Debian 13 (Trixie); -h since Debian 13 (Trixie); -p since Debian 13 (Trixie).

-a until Debian 12 (Bookworm).

From rust-coreutils 0.0.30-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.