Which of the following commands will NOT update the Modify timestamp on the file /tmp/myfile.txt?

Which of the following commands will NOT update the Modify timestamp on the file /tmp/myfile.txt?

Which of the following commands will NOT update the Modify timestamp on the file /tmp/myfile.txt?

A.
file /tmp/myfile.txt

B.
echo “Hello” >/tmp/myfile.txt

C.
sed -i “s/1/2/” /tmp/myfile.txt

D.
echo -n “Hello” >/tmp/myfile.txt

E.
touch /tmp/myfile.txt

Explanation:
file just displays the MIME-type of a file, without changing anything in the file.



Leave a Reply 0

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