Results 1 to 3 of 3
Thread: recently created/modified files
-
01-30-2006, 03:27 PM #1Newbie
- Join Date
- Aug 2003
- Posts
- 26
recently created/modified files
Hi everyone,
As part of a security measure I would like to know where I can get a list of all the recently created or modified files on my server.
I found the following command:
The following command lists all files that were created in the past two weeks:
root> find . -mtime -14 -print
However this seems to check only in the directory that I am currently in. Is there a way to make the above command apply to the whole server?
Thanks very much I appreciate the help!
Mark
-
01-30-2006, 03:32 PM #2Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
Adjust . too the path you wish too check.
IE
find /home -mtime -14 -printServer Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com
-
01-30-2006, 09:19 PM #3Newbie
- Join Date
- Aug 2003
- Posts
- 26
Your post certainly helped. I typed in this command in order to get information from the whole server for the last 24 hours and saved it to a file for easy viewing:
find / -mtime -1 > file1.txt
thanks for your help!