Is there a way to view or store file history (like browser history) in Linux?
Linux does not track file history information.
You will need to configure auditing to track changes to specific files.
Some notes:
- Audit only does future changes
- Auditing a deleted file may cause problem to the daemon.
Look for auditctl.
Some random references (many more can be found):
- How To Monitor File Changes Using fswatch In Linux
- Monitoring Linux File access, Changes and Data Modifications
- Track file changes using auditd
- The Linux Audit System, or Who Changed That File?