Bird
0
0

Which of the following is the correct syntax to start a here document in bash?

easy📝 Syntax Q12 of 15
Bash Scripting - Text Processing in Scripts
Which of the following is the correct syntax to start a here document in bash?
Acommand <<EOF
B<<EOF command
Ccommand EOF<<
D<< command EOF
Step-by-Step Solution
Solution:
  1. Step 1: Recall the here document syntax

    The correct syntax places the command first, then <
  2. Step 2: Match the options

    Only command <
  3. Final Answer:

    command < -> Option A
  4. Quick Check:

    Command before <
Quick Trick: Command comes before <
Common Mistakes:
MISTAKES
  • Putting <
  • Swapping EOF and <<
  • Adding spaces incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes