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?

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

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.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Tom Williams

Tom Williams

Surely answer A is correct?

Simon

Simon

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.

Tom Williams

Tom Williams

Thanks

unaiz arakkal

unaiz arakkal

whats in RHEL

Tom Liddle

Tom Liddle

NONE OF THE ABOVE isn’t listed… lol..
You’re right, >> appends – and isn’t listed.