Bird
0
0

You run id -x and get an error. What is the likely cause?

medium📝 Debug Q6 of 15
Linux CLI - Users and Groups
You run id -x and get an error. What is the likely cause?
AYou need root privileges to run this command
BInvalid option '-x' for the id command
CThe user has no groups assigned
DThe command requires an argument
Step-by-Step Solution
Solution:
  1. Step 1: Check id command options

    -x is not a valid option for id.
  2. Step 2: Understand error cause

    Using an invalid option causes the command to error out immediately.
  3. Final Answer:

    Invalid option '-x' for the id command -> Option B
  4. Quick Check:

    Invalid option = error [OK]
Quick Trick: Check id --help for valid options before use [OK]
Common Mistakes:
  • Assuming all letters are valid options
  • Thinking root needed for id
  • Believing user can have no groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes