Linux Foundation Certified System Administrator (LFCS) — Question 47

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

Answer options

Correct answer: A

Explanation

The command 'file /tmp/myfile.txt' is used to determine the type of the file and does not modify it, hence it does not update the timestamp. In contrast, the other commands either write to the file or alter its contents, resulting in an updated modification timestamp.