Hello, do you know any way how can i see the list of last modified files on my server? May be by cPanel, or some program does that or by SSH? That would be great to know to find which files was modified/added in case my site got hacked. Thanks in advance!
SSH would be best. find . -mtime -1 < This will find all files modified less then 1 day ago. Change the 1 to anything you need. http://unixhelp.ed.ac.uk/CGI/man-cgi?find If there was a common string placed in the files, you could also search all files for that string like, grep -rl <string> * . This will print out a list of files that contains that string.
thanks a lot for your reply, that really helps!! One more question, what would be the command to display latest modified files in particular subfolder of my site and all it's subfolders? For ex. in site.com/media/ ?
In that case, you could change the (dot). in the above example to the filepath. For example find site.com/media -mtime -1 The find command has tons of other useful flags that you can see in the man pages for it http://unixhelp.ed.ac.uk/CGI/man-cgi?find Let me know if that doesnt work for you.