Bird
0
0

What does the command cd .. do in Linux?

easy📝 Conceptual Q2 of 15
Linux CLI - Linux Basics and Terminal
What does the command cd .. do in Linux?
ALists files in the current directory
BMoves to the parent directory
CDeletes the current directory
DCreates a new directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the 'cd' command

    The cd command changes the current directory.
  2. Step 2: Interpret '..' argument

    The double dot .. means the parent directory of the current folder.
  3. Final Answer:

    Moves to the parent directory -> Option B
  4. Quick Check:

    cd .. = go up one folder [OK]
Quick Trick: Use 'cd ..' to go up one directory level [OK]
Common Mistakes:
  • Thinking it creates a directory
  • Assuming it deletes files
  • Confusing with 'ls' command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes