In order to append the output of ls to a file called bazz, which of the following command lines would you use?
A.
ls > bazz
B.
ls >& bazz
C.
ls &> bazz
D.
ls >> bazz
Explanation/Reference:
A) cmd > file – redirect the standard output of cmd into file.
B) cmd >& file – redirect stdout to file
C) cmd &> file – redirect stdout and stderr to file
Correct Answer: D