Linux CLI - Users and Groups
What will be the output of this command if you run it as user
bob?su -c 'whoami' alice
bob?su -c 'whoami' alice
su -c 'command' username syntaxalice.whoami outputwhoami prints the current user running the command, so it will print alice.su -c 'cmd' user runs cmd as user [OK]su -c 'cmd' user to run command as user [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions