Examveda
Examveda

Which of the following commands is used to update access and modification times of a file?

A. grep

B. wc

C. touch

D. cat

E. None of the above

Answer: Option C

Solution(By Examveda Team)

In Unix, the touch command is used to update access and modification times of a file. If the file specified doesn't exist, touch creates an empty file with the specified name.
So, touch is the correct command to update access and modification times of a file.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix