Find Files In Specific Range Linux

Find Files In Specific Range Linux

This is useful should you need to copy/search for files modified within a specified time range.

The base command will be provided below, which searches from Jan 1st 2012 -> Jun 1st 2012. Modify according to your needs and filter through "cp" for file copy/move requirements.

touch -t 201201010000 begin; touch -t 201206012359.59 end; find /pathtosearch -newer begin -a ! -newer end
    • Related Articles

    • Linux

      Linux     System Information: Print Kernel and OS Release Versions: uname -r (or uname -a for all info) 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 cat /etc/*release* CloudLinux Server release 6.6 (Leonid Kizim) Linux Watch Limit: ...
    • Find

      Find     Find With Two Pattern Checks: find . -maxdepth 5 -type f -name "*.php" \( -exec egrep -sli "base64_decode" {} \; -false -o -exec egrep -i "base64_decode" {} \; \)
    • Managing Repos in Linux

      Removing / Disabling Package/Repos causing conflicts During Yum Update  During yum update if there is a conflict, you need to fix by excluding unwanted 3rd party packages / repos that belongs to a specific repository, use any one of the two methods ...
    • New Access Management User setup on Linux

      1) Login to your accounts.cartika.com account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) 3) Navigate to Login to SolidCP -> Click Login 4) Click on Users under your Hosted ...
    • restoring individual files over bacula4 UI

      To restore individual files or folder for your server, when you approach your server you will find a series of icons to select. Click on the restore Icon Next you will see a series of backups. Select the appropriate date's restore icon. You should ...