Bird
0
0

What does the command cd .. do in a Linux terminal?

easy📝 Conceptual Q11 of 15
Linux CLI - Navigating the File System
What does the command cd .. do in a Linux terminal?
AMoves you to your home directory
BMoves you up one directory level
CMoves you to the root directory
DLists files in the current directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of .. in directory paths

    The .. symbol means the parent directory, which is one level up from the current directory.
  2. Step 2: Apply cd .. command

    Using cd .. changes the current directory to its parent directory, effectively moving you up one level.
  3. Final Answer:

    Moves you up one directory level -> Option B
  4. Quick Check:

    cd .. = move up one folder [OK]
Quick Trick: Remember: '..' means parent folder, so cd .. goes up [OK]
Common Mistakes:
  • Thinking cd .. moves to home directory
  • Confusing cd .. with cd / (root)
  • Using cd .. to list files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes