Bird
0
0

You want to return to the previous directory you were in. Which command should you use?

medium📝 Debug Q7 of 15
Linux CLI - Navigating the File System
You want to return to the previous directory you were in. Which command should you use?
Acd ~
Bcd ..
Ccd -
Dcd /
Step-by-Step Solution
Solution:
  1. Step 1: Understand cd - command

    cd - switches to the last directory you were in before the current one.
  2. Step 2: Compare with other options

    cd .. goes up one level, cd ~ goes home, cd / goes to root directory.
  3. Final Answer:

    cd - -> Option C
  4. Quick Check:

    cd - returns to previous directory = C [OK]
Quick Trick: Use cd - to toggle between current and previous directory [OK]
Common Mistakes:
MISTAKES
  • Using cd .. which goes up one directory
  • Confusing cd - with cd ~

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes