How do you find when was the file last modified in Unix?

Thảo Justin

New member
How do you find when was the file last modified in Unix?
Answer
date command with -r option followed by the name of file will display the last modified date and time of the file. which is the last modified date and time of the given file. date command can also be used to determine the last modified date of a directory. Unlike stat command, date cannot be used without any option.
 

Tìm kiếm

Back
Top