L
L
lexaxaxa2015-10-15 13:07:44
ubuntu
lexaxaxa, 2015-10-15 13:07:44

Why don't stat, li -lu in ubuntu update file read or copy time?

Why don't stat, li -lu in ubuntu update file read or copy time? Do they just update acces time when writing to a file? How to fix it? Clear cache like in php(clearstatcache())? If yes, how to clean?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sundukov, 2015-10-17
@lexaxaxa

The meta-information on the file does not contain the time of its copying. There is atime - access time (moreover, stat itself does not update this information, and this is correct, because otherwise it would overwrite this data). There is ctime - attribute modification time (access rights there). There is mtime - the time of the last modification of the file. If there was an entry to the file, then mtime changes without options.

L
lexaxaxa, 2015-10-19
@lexaxaxa

a2ad0c65ac2243ddb33ea5195e8f4375.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question