Bird
0
0

Which of the following is the correct syntax to change directory to the home folder in the terminal?

easy📝 Syntax Q3 of 15
Linux CLI - Linux Basics and Terminal
Which of the following is the correct syntax to change directory to the home folder in the terminal?
Acd /home
Bcd ./home
Ccd home/
Dcd ~
Step-by-Step Solution
Solution:
  1. Step 1: Understand the home directory shortcut

    The tilde ~ symbol represents the current user's home directory.
  2. Step 2: Check each option

    cd ~ correctly changes to the home folder; others point to different or incorrect paths.
  3. Final Answer:

    cd ~ -> Option D
  4. Quick Check:

    Use cd ~ to go home [OK]
Quick Trick: Use cd ~ to jump to your home folder [OK]
Common Mistakes:
MISTAKES
  • Using absolute path /home which may not be user home
  • Forgetting tilde means home
  • Using relative paths incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes