man > id(1)

πŸ†” NAME

id - print real and effective user and group IDs

πŸš€ Quick Reference

Use CaseCommandDescription
πŸ” Show current user infoidDisplay user ID, group ID, and supplementary groups
πŸ‘€ Show only user IDid -uPrint effective user ID number
πŸ‘₯ Show only group IDid -gPrint effective group ID number
πŸ“‹ List all group IDsid -GPrint all group IDs (space‑separated)
🏷️ Show names instead of numbersid -nCombined with -u, -g, or -G to get names
🎯 Show real ID instead of effectiveid -rUse with -u, -g, or -G
πŸ‘€ Get username onlyid -unPrint the username of the current user
πŸ‘₯ Get group name onlyid -gnPrint the group name of the current user
πŸ“‹ List all group namesid -GnPrint all group names (space‑separated)
πŸ”’ Show security contextid -ZPrint SELinux security context (if available)
0️⃣ Use NUL delimiterid -zOutput entries separated by NUL, useful for scripting
ℹ️ Check another userid usernameShow info for specified user

πŸ“– SYNOPSIS

id [OPTION]... [USER]...

πŸ“ DESCRIPTION

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

βš™οΈ OPTIONS

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

πŸ‘€ AUTHOR

Written by Arnold Robbins and David MacKenzie.

πŸ› REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>

©️ COPYRIGHT

Copyright Β© 2020 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.

πŸ“š SEE ALSO

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


GNU coreutils 8.32 January 2026

id(1)
πŸ†” NAME πŸš€ Quick Reference πŸ“– SYNOPSIS πŸ“ DESCRIPTION βš™οΈ OPTIONS πŸ‘€ AUTHOR πŸ› REPORTING BUGS ©️ COPYRIGHT πŸ“š SEE ALSO

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 01:16 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format