Bird
0
0

Which of the following is the correct syntax to display the user ID only using the id command?

easy📝 Syntax Q3 of 15
Linux CLI - Users and Groups
Which of the following is the correct syntax to display the user ID only using the id command?
Aid -a
Bid -g
Cid -n
Did -u
Step-by-Step Solution
Solution:
  1. Step 1: Understand id options

    -u shows user ID, -g shows group ID, -n shows names instead of numbers for all, -a is not a valid option.
  2. Step 2: Match option to user ID output

    Only id -u correctly outputs the user ID number.
  3. Final Answer:

    id -u -> Option D
  4. Quick Check:

    id -u = user ID only [OK]
Quick Trick: Use id -u to get user ID number [OK]
Common Mistakes:
  • Using id -g for user ID
  • Trying id -n without argument
  • Assuming id -a exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes