Which of the following command sequences overwrites the file foobar.txt?

Which of the following command sequences overwrites the file foobar.txt?

Which of the following command sequences overwrites the file foobar.txt?

A.
echo “QUIDQUIDAGIS” >> foobar.txt

B.
echo “QUIDQUIDAGIS” < foobar.txt

C.
echo “QUIDQUIDAGIS” > foobar.txt

D.
echo “QUIDQUIDAGIS” | foobar.txt

Explanation:



Leave a Reply 1

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


Amir.R Sarhadbani

Amir.R Sarhadbani

which of the following would do the same as the command cat file2.txt?
cat file2.txt
cat
cp fil1.txt>file2txt

Thank you