Test Your Knowledge

   

1:

What is the file descriptor used for stderr?

  1. 1

  2. 2

  3. 3

2:

The symbol used to append to a file when redirecting stdout to that file is:

  1. >

  2. >>

  3. <

  4. 2>

3:

When you redirect both stdout and stderr to the same location, you use:

  1. 2&>

  2. 2&>1

  3. 2>&1

  4. 1>&2

4:

A pipe is used to:

  1. send output of one command to the input of another command

  2. filter certain data from the output of a command

  3. reorder output of a command

  4. all of the above

5:

Which is not true?

  1. Pipes can be used with redirection symbols.

  2. Pipes cannot be used when stdin redirection is used in a command.

  3. It is possible to redirect all stdin, stdout, and stderr at the same time.

  4. The tee command sends output of a command to two locations.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net