Bird
0
0

What does the here string operator <<< do in bash scripting?

easy🧠 Conceptual Q11 of 15
Bash Scripting - Text Processing in Scripts
What does the here string operator <<< do in bash scripting?
ARedirects output to a file
BStarts a multiline comment
CSends a short string as input to a command
DCreates a new shell process
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of here strings

    Here strings use <<< to send a short string directly as input to a command without needing a file.
  2. Step 2: Compare with other redirections

    Unlike output redirection or comments, here strings provide input data inline.
  3. Final Answer:

    Sends a short string as input to a command -> Option C
  4. Quick Check:

    Here strings = send input string [OK]
Quick Trick: Here strings send input text directly to commands [OK]
Common Mistakes:
MISTAKES
  • Confusing input with output redirection
  • Thinking it creates files
  • Mixing with multiline comments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes