From ddd40bc65021df744baa623e30bef3234022de0a Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Wed, 9 Jan 2019 00:03:55 +0100 Subject: [PATCH] id: add two examples including the most basic one. --- pages/common/id.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/id.md b/pages/common/id.md index 2aa5331ba5..228d5cb695 100644 --- a/pages/common/id.md +++ b/pages/common/id.md @@ -2,6 +2,10 @@ > 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: `id -u` @@ -9,3 +13,7 @@ - Display the current group identity as a number: `id -g` + +- Display an arbitrary user's id (UID), group id (GID) and groups of which they are a member: + +`id {{username}}`