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.
Surely answer A is correct?
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.
Thanks
whats in RHEL
NONE OF THE ABOVE isn’t listed… lol..
You’re right, >> appends – and isn’t listed.