ID(1) User Commands ID(1)

# [NAME](#NAME)

id - print real and effective user and group IDs

# [SYNOPSIS](#SYNOPSIS)

**id** \[*OPTION*]... \[*USER*]...

# [DESCRIPTION](#DESCRIPTION)

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

[**-a**](#a)

ignore, for compatibility with other versions

[**-Z, --context**](#Z,)

print only the security context of the process

[**-g, --group**](#g,)

print only the effective group ID

[**-G, --groups**](#G,)

print all group IDs

[**-n, --name**](#n,)

print a name instead of a number, for **-u**, **-g**, **-G**

[**-r, --real**](#r,)

print the real ID instead of the effective ID, with **-u**, **-g**, **-G**

[**-u, --user**](#u,)

print only the effective user ID

[**-z, --zero**](#z,)

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

[**--help**](#help)

display this help and exit

[**--version**](#version)

output version information and exit

Without any OPTION, print some useful set of identified information.

# [AUTHOR](#AUTHOR)

Written by Arnold Robbins and David MacKenzie.

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to: &lt;bug-coreutils@gnu.org&gt;.  
Report any translation bugs to: &lt;https://translationproject.org/team/&gt;.  
GNU coreutils home page: &lt;https://www.gnu.org/software/coreutils/&gt;  
General help using GNU software: &lt;https://www.gnu.org/gethelp/&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;https://gnu.org/licenses/gpl.html&gt;.  
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

# [SEE ALSO](#SEE_ALSO)

Full documentation &lt;https://www.gnu.org/software/coreutils/id&gt;  
or available locally via: info '(coreutils) id invocation'

October 2026 GNU coreutils 9.12

---

Document: id(1) from coreutils 9.12-r5 (Chainguard OS)
Source: https://git.savannah.gnu.org/git/coreutils.git
