Bird
0
0

Which command correctly changes directory to a relative path named projects inside the current folder?

easy📝 Syntax Q12 of 15
Linux CLI - Navigating the File System
Which command correctly changes directory to a relative path named projects inside the current folder?
A<code>cd projects</code>
B<code>cd .projects</code>
C<code>cd /projects</code>
D<code>cd ../projects</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand relative path usage in cd

    To move into a folder inside the current directory, you can use the folder name directly or prefix it with ./.
  2. Step 2: Identify the simplest correct syntax

    cd projects uses cd projects, which is correct and simplest for relative path inside current folder.
  3. Final Answer:

    cd projects -> Option A
  4. Quick Check:

    Relative path inside current folder = cd projects [OK]
Quick Trick: Use folder name alone to cd into relative path [OK]
Common Mistakes:
  • Using leading slash for relative paths
  • Confusing ../ with current directory
  • Adding unnecessary ./ prefix

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes