1ID(1) User Commands ID(1)
2
3
4
6 id - print real and effective user and group IDs
7
9 id [OPTION]... [USERNAME]
10
12 Print user and group information for the specified USERNAME, or (when
13 USERNAME omitted) for the current user.
14
15 -a ignore, for compatibility with other versions
16
17 -Z, --context
18 print only the security context of the current user
19
20 -g, --group
21 print only the effective group ID
22
23 -G, --groups
24 print all group IDs
25
26 -n, --name
27 print a name instead of a number, for -ugG
28
29 -r, --real
30 print the real ID instead of the effective ID, with -ugG
31
32 -u, --user
33 print only the effective user ID
34
35 --help display this help and exit
36
37 --version
38 output version information and exit
39
40 Without any OPTION, print some useful set of identified information.
41
43 Written by Arnold Robbins and David MacKenzie.
44
46 Report id bugs to bug-coreutils@gnu.org
47 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
48 General help using GNU software: <http://www.gnu.org/gethelp/>
49 Report id translation bugs to <http://translationproject.org/team/>
50
52 Copyright © 2010 Free Software Foundation, Inc. License GPLv3+: GNU
53 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
54 This is free software: you are free to change and redistribute it.
55 There is NO WARRANTY, to the extent permitted by law.
56
58 The full documentation for id is maintained as a Texinfo manual. If
59 the info and id programs are properly installed at your site, the com‐
60 mand
61
62 info coreutils 'id invocation'
63
64 should give you access to the complete manual.
65
66
67
68GNU coreutils 8.5 November 2010 ID(1)