Linux Quiz #001

This is the first in a series of Linux Quizzes. Some quizzes will be very basic while some will be quite tough even for the graybeards. I will post my version of the correct answer after a few days.

I/O Redirection (submit answer)

An imaginary bash shell script, foobar.sh, outputs data on standard output and diagnostic messages on standard error. What command line would you use to run foobar.sh and have the data output in file data.out and the diagnostic
output in file diag.out?

For extra credit, submit a bash script that creates output as described.

Leave a Reply