5

This question already has an answer here:

stat outputs a file's last modification time.
How can I see a list of all the times a file was modified?

For example, I'd like to edit a file 5 times, and see 5 modification times.

marked as duplicate by Gilles bash Apr 8 '15 at 21:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

11

The system does not track that information. Every time the file is modified, the new modification time overwrites the previous one.

Depending on what exactly you need to do, various alternate solutions might apply, such as using a version control system, or having a daemon that watches for changes using inotify. But all of those solutions would rely on something else besides the modification time field as reported by stat.

Not the answer you're looking for? Browse other questions tagged or ask your own question.