From 1fb034577dedfd2fe5f09f4e8c9cc6e9a61f3ad8 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Tue, 9 Oct 2018 21:53:43 +0530 Subject: [PATCH] whoami: clarify description and add sudo example (#2419) --- pages/common/whoami.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/whoami.md b/pages/common/whoami.md index f55ead7334..137fd8fed5 100644 --- a/pages/common/whoami.md +++ b/pages/common/whoami.md @@ -1,7 +1,11 @@ # whoami -> Show the username of the current user. +> Print the username associated with the current effective user ID. -- Display currently logged user name: +- Display currently logged username: `whoami` + +- Display the username after a change in the user ID: + +`sudo whoami`