Bird
0
0

Which of the following is the correct syntax to display your user ID and group information in Linux?

easy📝 Syntax Q12 of 15
Linux CLI - Users and Groups
Which of the following is the correct syntax to display your user ID and group information in Linux?
Auser id
Bid
Cwhoami -u
Dshowid
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct command syntax

    The command id without arguments shows user ID, group ID, and group memberships.
  2. Step 2: Check other options for validity

    Options A, B, and D are invalid commands or incorrect syntax for this purpose.
  3. Final Answer:

    id -> Option B
  4. Quick Check:

    id shows user and group info [OK]
Quick Trick: Use simple id to see user and group IDs [OK]
Common Mistakes:
MISTAKES
  • Adding wrong flags to whoami
  • Typing commands with spaces like 'user id'
  • Using non-existent commands like showid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes