Bird
0
0

What does the tilde symbol ~ represent in a bash shell?

easy🧠 Conceptual Q11 of 15
Bash Scripting - Quoting and Expansion
What does the tilde symbol ~ represent in a bash shell?
AThe current user's home directory
BThe root directory
CThe current working directory
DA temporary directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand tilde usage in bash

    The tilde ~ is a shortcut that expands to the current user's home directory path.
  2. Step 2: Compare options with definition

    Only the current user's home directory correctly states that ~ means the current user's home directory.
  3. Final Answer:

    The current user's home directory -> Option A
  4. Quick Check:

    Tilde (~) = home directory [OK]
Quick Trick: Remember: ~ always means your home folder [OK]
Common Mistakes:
MISTAKES
  • Confusing ~ with root directory /
  • Thinking ~ means current directory
  • Assuming ~ is a temporary folder

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes