G
G
getpay2020-12-21 17:40:40
linux
getpay, 2020-12-21 17:40:40

How to view the modification history of a file in Linux?

Hello, how can I see the history of a file in Linux?
Here is the history of the last change I know, but how do I know when there were changes before it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2020-12-21
@getpay

if you didn’t take care of some kind of change tracking tool in advance, for example, auditd, etc. , then alas, no way.

V
Vasily Bannikov, 2020-12-21
@vabka

If this is not a journaled file system or version control system, then there is no way

P
pfg21, 2020-12-21
@pfg21

no way on average.
the file system is completely uninterested in storing the history of changes to the file, and therefore it does not store it either.
there are fs that "in passing" store the history of file changes through CoW (btrfs zfs) or in a sense vss, but this is somewhat different.
as an option for special programs for monitoring and tracking files or writing the inotify log, but this is also not a common case.
in general, describe in more detail what you want the elder

V
Valdemar Smorman, 2020-12-21
@smorman

Finding the last modified files/folders in Unix/Linux
File creation, access and modification time: what is...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question