Skip to content

Commit 4d4b146

Browse files
authored
id: add examples (#19800)
1 parent 6732371 commit 4d4b146

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/common/id.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323

2424
`id {{[-g|--group]}}`
2525

26+
- Display all groups the current user belongs to:
27+
28+
`id {{[-Gn|--groups --name]}}`
29+
2630
- Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:
2731

2832
`id {{username}}`
33+
34+
- Skip name lookup and specify the UID number explicitly:
35+
36+
`id +{{uid_number}}`

0 commit comments

Comments
 (0)