Bird
0
0

You run cd ~Documents but get an error. What is the mistake?

medium📝 Debug Q6 of 15
Linux CLI - Navigating the File System
You run cd ~Documents but get an error. What is the mistake?
AUsing ~ instead of $HOME
BDocuments folder does not exist
CMissing slash after ~
Dcd command cannot use shortcuts
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command syntax

    The command cd ~Documents lacks a slash between ~ and Documents. The shell does not expand ~Documents as a path.
  2. Step 2: Correct the syntax

    It should be cd ~/Documents with a slash to access the Documents folder inside home.
  3. Final Answer:

    Missing slash after ~ -> Option C
  4. Quick Check:

    Always put slash after ~ before folder name [OK]
Quick Trick: Put '/' after ~ before folder name [OK]
Common Mistakes:
  • Omitting slash after ~
  • Assuming ~Documents is valid
  • Thinking cd can't use ~ shortcut

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes