Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?

Posted by: Pdfprep Category: LFCS Tags: , ,

Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?
A . cmd || foo.txt
B . cmd | foo.txt
C . cmd && foo.txt
D . cmd >> foo.txt
E . cmd > foo.txt

Answer: E

Leave a Reply

Your email address will not be published.