Bird
0
0

You are in /home/user. You want to change to /home/user/projects/python using a single cd command but only remember the path up to projects. Which command will get you there?

hard📝 Application Q8 of 15
Linux CLI - Navigating the File System
You are in /home/user. You want to change to /home/user/projects/python using a single cd command but only remember the path up to projects. Which command will get you there?
Acd /projects/python
Bcd ../projects/python
Ccd /home/projects/python
Dcd projects/python
Step-by-Step Solution
Solution:
  1. Step 1: Understand current directory and relative path

    Since you are in /home/user, projects/python is a relative path inside current directory.
  2. Step 2: Analyze options

    cd projects/python correctly moves into projects/python inside current directory; cd /projects/python looks in root; cd /home/projects/python goes to /home/projects/python (missing user); cd ../projects/python goes up one level then projects.
  3. Final Answer:

    cd projects/python -> Option D
  4. Quick Check:

    Relative path cd projects/python = B [OK]
Quick Trick: Use relative path from current directory for subfolders [OK]
Common Mistakes:
MISTAKES
  • Using absolute path with leading slash incorrectly
  • Confusing ~ with current directory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes