Results 1 to 3 of 3
-
12-08-2008, 07:46 PM #1Web Hosting Master
- Join Date
- Dec 2002
- Location
- UK
- Posts
- 838
searching for files modified on a day
hi all
can someone please tell me how would i search for any files modified between such and such date using SSH
some one seems to have downloaded some malicious codes on to some on one of my sites and the files are infected
however i have 1000's of files and some are infected wheras some hasnt
so iw ant to check what files have been modified between a date range or on a particular day
using Linux with apache
thanks
__________________Islamic Webhosting and Community
-
12-08-2008, 08:33 PM #2bk4linux Guest
Go to document root of the website and run the following command:
This will show file modified in last 2 days
# find . -mtime -2 -type f|xargs ls âl
Here after -mtime you can put previous no. of days from where you want.
Brajesh
-
12-09-2008, 11:55 AM #3Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Use the following to list the files/directories that were modified between last 2 and 4 days ago.
find /path/to/directory -mtime 2 -mtime -4 -daystart
__________________
Davidhttp://cliffsupport.com
"Where support matters"