What is the output when the following shell command executes?

What is the output when the following shell command executes?
$ cat << foobar
Hello foobar
foobar

What is the output when the following shell command executes?
$ cat << foobar
Hello foobar
foobar

A.
The contents of the file foobar

B.
Hello

C.
No output but a file named foobar is created

D.
Hello foobar

E.
Hello foobar

F.
foobar



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Ross Greylock

Ross Greylock

D & E have the same answer, what makes D the correct choice?

networkmanagers

networkmanagers

ofcouse . Same answer

sara

sara

Please correct test . Why D and E same ?

Andy

Andy

also in the test will find a double same answer? I don’t think so… 😀