Challenge - 5 Problems
User Identity Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateOutput of whoami command
What is the output of the
whoami command when run by a logged-in user named alice?Linux CLI
whoami
Attempts:
2 left
💡 Hint
The
whoami command shows the current user's login name.✗ Incorrect
The
whoami command prints the username of the current user running the command. If the user is 'alice', it outputs 'alice'.💻 Command Output
intermediateUnderstanding id command output
What does the
id command output show when run by user bob with UID 1001, GID 1001, and groups 1001 and 27?Linux CLI
id
Attempts:
2 left
💡 Hint
The
id command shows user ID, group ID, and group memberships with names.✗ Incorrect
The
id command outputs the user ID (uid), group ID (gid), and all groups the user belongs to, showing both numeric IDs and names.🧠 Conceptual
advancedDifference between whoami and id commands
Which statement correctly describes the difference between
whoami and id commands?Attempts:
2 left
💡 Hint
Think about what each command prints about the user.
✗ Incorrect
whoami prints the username of the current user. id prints detailed info: user ID, group ID, and all groups the user belongs to.💻 Command Output
advancedOutput of id command with multiple groups
What is the output of
id for user carol with UID 2000, GID 3000, and groups 3000, 4, and 27, where group 4 is 'adm' and 27 is 'sudo'?Linux CLI
id
Attempts:
2 left
💡 Hint
The
id command shows numeric IDs and group names.✗ Incorrect
The output format includes numeric IDs and names for user ID, group ID, and all groups the user belongs to.
💻 Command Output
expertError when running id with invalid option
What error message appears when running
id --unknown on a Linux system?Linux CLI
id --unknown
Attempts:
2 left
💡 Hint
Invalid options usually produce a message about unrecognized option.
✗ Incorrect
The
id command prints an error message about unrecognized option and suggests using --help.