Linux CLI - Users and Groups
Why does the
whoami command always show the effective user, even if you switch users with su?whoami command always show the effective user, even if you switch users with su?whoami shows the effective user ID, which changes when you use su to switch users.whoami does not cache usernames, su changes user context, and whoami does not just read /etc/passwd.whoami shows the effective user ID, not the original login user -> Option Bwhoami = effective user ID [OK]whoami shows current effective user, not original login [OK]whoami shows original login usersu does not change userwhoami reads static files only15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions