Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

#here-document#heredoc#input-redirection#shell-redirection#delimiter
A

<<

Correct
B

<|

C

!<

D

&<

Resolution & Explanations

The << operator is used in shell scripting for here-documents. It allows reading from the current input source until a specified delimiter string is encountered on a line by itself, with no trailing spaces. This is commonly used to provide multi-line input to commands.