Bird
0
0

Identify the error in this command sequence:

medium📝 Debug Q6 of 15
Linux CLI - Navigating the File System
Identify the error in this command sequence:
cd /etc
pwd -x
Apwd does not accept the -x option
Bcd /etc is invalid
Cpwd must be run with sudo
DNo error, command runs fine
Step-by-Step Solution
Solution:
  1. Step 1: Check validity of cd command

    cd /etc is valid and changes directory to /etc.
  2. Step 2: Check pwd command options

    pwd does not support a -x option, so this causes an error.
  3. Final Answer:

    pwd does not accept the -x option -> Option A
  4. Quick Check:

    Invalid pwd option causes error [OK]
Quick Trick: pwd has no -x option; use plain pwd [OK]
Common Mistakes:
  • Assuming cd is wrong
  • Thinking pwd needs sudo
  • Ignoring invalid option error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes