How can I see a file's historical modification times?

52,019

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.

Share:
52,019

Related videos on Youtube

bulvgo_uh
Author by

bulvgo_uh

Updated on September 18, 2022

Comments

  • bulvgo_uh
    bulvgo_uh over 1 year

    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.