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?
The 'file' command is used to determine the type of a file and does not modify the file in any way. Therefore, it does not update the modify timestamp on the file. The other commands (echo, sed, and touch) either modify the file content or update the file's timestamp, hence they would update the modify timestamp.
file command will provide statistics while others wil modify content so A is correct