PrepAway - Latest Free Exam Questions & Answers

which of the following command lines would you use?

In order to append the output of Is to a file called bazz, which of the following command lines would you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Is > bazz

B.
Is >& bazz

C.
Is & > bazz

D.
Is � bazz

Explanation:
Common Redirection Operator:
Command > file Redirect the Standard Output of command into file.
Command >> file Append the Standard Output of command into file.
Command < file Command receives input from file.
Command 2>file Redirect the error message to file.
Command 2>>file Append the error message to file.

5 Comments on “which of the following command lines would you use?

    1. Simon says:

      The answer should be

      ls >> bazz

      to append a file which I think should be D but the graphic has come out incorrectly for >>.

      The > would over write the file bazz and not append it.




      0



      0

Leave a Reply