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

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

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



Leave a Reply 1

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


liti

liti

Correct Answer: D