Results 1 to 3 of 3
  1. #1
    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

  2. #2
    bk4linux 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

  3. #3
    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"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •