Multiple choice technology operating systems

Which command is used to modify the modification time and access times of a file

  1. modify

  2. touch

  3. cat

  4. Not possible

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

touch is the Unix command that updates both the modification time (mtime) and access time (atime) of a file to the current timestamp. It can also create an empty file if it doesn't exist. Options A and C are not valid commands for timestamp modification.