nerdexam
LPI

101-500 · Question #137

In the command foo < bar | foobar, which ONE of the following statements is correct?

The correct answer is D. The command foobar receives its stdin from the stdout of foo. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Shells and Shell Scripting

Question

In the command foo < bar | foobar, which ONE of the following statements is correct?

Options

  • AThe stdout from the command foobar is saved to the file foo.
  • BThe stdout from the command foo is saved to the file foobar.
  • CThe command foobar receives its stdin from the stderr of foo.
  • DThe command foobar receives its stdin from the stdout of foo.
  • EThe command bar receives its stdin from the contents of the file foobar.

How the community answered

(28 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    93% (26)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#pipes#input/output redirection#stdin/stdout#shell operators

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice