summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man1/id.md
blob: 0a830d08079449f560f3ffcc63e5d292ce9e9515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Name

id - print user/group ID

## Synopsis

```**sh
$ id [options...]
```

## Description

`id` outputs user and group information for the current user.

## Options

* `-u`: Print only real UID.
* `-g`: Print only real GID.
* `-G`: Print only all GIDs.
* `-n`: If `-u`, `-g` or `-G` is specified, print full names instead of IDs.

## Examples

```sh
$ id
uid=100(anon) gid=100(users) groups=1(wheel),10(lookup),12(notify),4(audio),13(window),14(clipboard),3(phys)
$ id -u
100
$ id -g
100
$ id -un
anon
$ id -G
1 10 12 4 13 14 3
```

## See also

* [`whoami`(1)](help://man/1/whoami)