www.LinuxHowtos.org





ID

Section: User Commands (1)
Updated: February 2026
Index Return to Main Contents
 

NAME

id - print real and effective user and group IDs  

SYNOPSIS

id [,OPTION/]... [,USER/]...  

DESCRIPTION

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

X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-a'-aX'tty: link'
ignore, for compatibility with other versions
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-Z'-Z, --contextX'tty: link'
print only the security context of the process
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-g'-g, --groupX'tty: link'
print only the effective group ID
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-G'-G, --groupsX'tty: link'
print all group IDs
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-n'-n, --nameX'tty: link'
print a name instead of a number, for -u,-g,-G
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-r'-r, --realX'tty: link'
print the real ID instead of the effective ID, with -u,-g,-G
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-u'-u, --userX'tty: link'
print only the effective user ID
X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#i-z'-z, --zeroX'tty: link'
delimit entries with NUL characters, not whitespace; not permitted in default format
X'tty: link https://www.gnu.org/software/coreutils/id#i-help'--helpX'tty: link'
display this help and exit
X'tty: link https://www.gnu.org/software/coreutils/id#i-version'--versionX'tty: link'
output version information and exit

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

AUTHOR

Written by Arnold Robbins and David MacKenzie.  

REPORTING BUGS

Report bugs to: bug-coreutils@gnu.org


Report Gentoo bugs to: https://bugs.gentoo.org/
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Report any translation bugs to <https://translationproject.org/team/>  

SEE ALSO

Full documentation <https://www.gnu.org/software/coreutils/id>
or available locally via: info aq(coreutils) id invocationaq


Packaged by Gentoo (9.10 (p0))
Copyright © 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
REPORTING BUGS
SEE ALSO