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?

PrepAway - Latest Free Exam Questions & Answers

A.
ls > bazz

B.
ls > & bazz

C.
ls &> bazz

D.
ls >> bazz

Explanation:
Use >> to append text to files (file will be created if it does not exist)
>, >& and &> redirect file descriptors (like stdout and stderr)


Leave a Reply