views:

25

answers:

1

Hi, if anyone hacks a site, then I would like to check which files are changed maybe in the last 24 hours in the directory htdocs, that means the files in the subdirectories form htdocs too. How to do this?

I will be happy for any suggestions,

Cheers Nik

+1  A: 
find {dir} -mtime -1 -print

will find files modified in the last 24 hours (-1 = 1 day)

If you're using zsh, then you can do:

ls **/*(mh-24)

which shows you files modified in the last 24 hours (you can specify different params for minutes/hours etc. and whether you want modified/accessed etc.)

Brian Agnew