Exam LFCS All QuestionsBrowse all questions from this exam
Question 53

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

    Correct Answer: A

    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.

Discussion
IvandragoOption: A

file command will provide statistics while others wil modify content so A is correct