which an existing file is overwritten?

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

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



Leave a Reply 1

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


Marek

Marek

Redirection operator > creates a new file containing standard output. If the file exists, it’s overwritten.