PrepAway - Latest Free Exam Questions & Answers

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

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


Leave a Reply