Bird
0
0

If your current directory is /home/user and you run cd ../etc, what will be your new directory?

medium📝 Command Output Q4 of 15
Linux CLI - Navigating the File System
If your current directory is /home/user and you run cd ../etc, what will be your new directory?
A/etc
B/home/etc
C/home/user/etc
D/user/etc
Step-by-Step Solution
Solution:
  1. Step 1: Understand '..' in path

    .. means move one directory up from current location.
  2. Step 2: Apply path changes

    From /home/user, cd ../etc moves up to /home, then into etc, resulting in /home/etc.
  3. Final Answer:

    /home/etc -> Option B
  4. Quick Check:

    cd ../etc moves up then into etc = B [OK]
Quick Trick: .. moves you up one directory level [OK]
Common Mistakes:
  • Assuming ../etc goes to /etc
  • Confusing relative and absolute paths

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes