mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 00:35:45 +02:00
id: add two examples including the most basic one.
This commit is contained in:
parent
cf225aca7a
commit
ddd40bc650
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
> Display current user and group identity.
|
> Display current user and group identity.
|
||||||
|
|
||||||
|
- Display current user id (UID), group id (GID) and groups of which you are a member:
|
||||||
|
|
||||||
|
`id`
|
||||||
|
|
||||||
- Display the current user identity as a number:
|
- Display the current user identity as a number:
|
||||||
|
|
||||||
`id -u`
|
`id -u`
|
||||||
|
@ -9,3 +13,7 @@
|
||||||
- Display the current group identity as a number:
|
- Display the current group identity as a number:
|
||||||
|
|
||||||
`id -g`
|
`id -g`
|
||||||
|
|
||||||
|
- Display an arbitrary user's id (UID), group id (GID) and groups of which they are a member:
|
||||||
|
|
||||||
|
`id {{username}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue