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