Bird
0
0

You want to list files in the Documents folder inside your home directory. Which command is best?

hard📝 Application Q8 of 15
Linux CLI - Navigating the File System
You want to list files in the Documents folder inside your home directory. Which command is best?
Als ./Documents
Bls /Documents
Cls ~/Documents
Dls Documents
Step-by-Step Solution
Solution:
  1. Step 1: Understand home directory shortcut

    "~" represents your home directory, so ~/Documents points there correctly.
  2. Step 2: Compare other options

    /Documents is root folder, ./Documents depends on current folder, Documents alone may fail if not in current folder.
  3. Final Answer:

    ls ~/Documents -> Option C
  4. Quick Check:

    Use ~ for home directory paths [OK]
Quick Trick: Use ~ to quickly access your home folder [OK]
Common Mistakes:
  • Using absolute path /Documents incorrectly
  • Assuming relative path always works

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes