Limux - file history

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
aceSpec
Forum Newbie
Posts: 12
Joined: Fri Sep 24, 2010 10:13 am

Limux - file history

Post by aceSpec »

Hey,

Is there any way to view the history of a file. I have a php file thats named my-test.php. Some how, on a certian day, the ownership changed to apache and the file name became my_test.php.

I am looking for any sort of log, so see if I can track down what happened on that date. I've used

Code: Select all

stat <filename>
, but that only gives me info up to the last change (which is what im looking into);

Any tips for this situation?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Limux - file history

Post by McInfo »

Look in apache's log files, possibly "/var/log/apache2/access.log". The file may have been changed by a script. The access log should tell you what scripts were run on that date.
Post Reply