Bird
0
0

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

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

    Current directory is /home/user/docs. The command cd ../pictures means go up one level to /home/user then into pictures.
  2. Step 2: Calculate the new directory path

    Going up one level from /home/user/docs is /home/user. Adding pictures gives /home/user/pictures.
  3. Final Answer:

    /home/user/pictures -> Option C
  4. Quick Check:

    cd ../pictures = up one + pictures folder [OK]
Quick Trick: cd ../folder means go up then into folder [OK]
Common Mistakes:
  • Appending pictures inside current directory instead of parent
  • Going to root or home by mistake
  • Ignoring the .. and staying in same folder

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes