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:
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:
which of the following would do the same as the command cat file2.txt?
cat file2.txt
cat
cp fil1.txt>file2txt
Thank you