Multiple choice technology web technology

How can you describe the function of the following commands? foo < bar > foobar

  1. The command bar gets its input from file foo and writes its output to the file foobar.

  2. The command foo gets its input from the file bar and redirect its output to the command foobar.

  3. The command bar writes its output to the files foo and foobar.

  4. The command foo gets its input from the file bar and writes its output to the file foobar.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The command foo takes input from file bar (< bar) and redirects output to file foobar (> foobar). Option B correctly describes this flow, though 'command foobar' in the wording is imprecise (foobar is a file, not a command).