Bird
0
0

What is wrong with this command sequence?

medium📝 Debug Q7 of 15
Linux CLI - Navigating the File System
What is wrong with this command sequence?
cd /home/user
pwd /home
ANo error, command runs fine
Bpwd does not take directory arguments
Cpwd must be run as root
Dcd /home/user is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Verify cd command

    cd /home/user is valid and changes directory.
  2. Step 2: Check pwd usage

    pwd does not accept directory arguments; it only prints the current directory.
  3. Final Answer:

    pwd does not take directory arguments -> Option B
  4. Quick Check:

    pwd prints current directory only, no args [OK]
Quick Trick: pwd never takes arguments; just run it alone [OK]
Common Mistakes:
MISTAKES
  • Passing directory to pwd
  • Thinking cd is wrong
  • Assuming root needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes