[OT]: Ho wto find files created on a specific date

Keiran Smith ksmith at xcalibre.co.uk
Wed Apr 2 14:15:34 UTC 2008


Dan Track wrote:
> Hi,
>
> I don't think that's possible as there are literally hundreds of
> various directories and thousands of files, each with their own
> creation/modification date. Any other thoughts?
>
> Thanks
> Dan
>
> On Wed, Apr 2, 2008 at 3:07 PM, Keiran Smith <ksmith at xcalibre.co.uk> wrote:
>   
>> Dan Track wrote:
>>
>>     
>>> Hi
>>>
>>> I need to delete files in my /opt/html/ directory that were
>>> created/modified ON the 20th of March this year? Is there a way for me
>>> to do this?
>>>
>>> Thanks
>>> Dan
>>>
>>>
>>>
>>>       
>>  Hey Dan,
>>
>>  You could simply become root
>>
>>  su -
>>
>>  and do the following
>>
>>  rm -rf /opt/html/<file>
>>
>>  a wildcard can also be used
>>
>>  Cheers,
>>
>>  Keiran
>>
>>  --
>>  fedora-list mailing list
>>  fedora-list at redhat.com
>>  To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>
>>     
>
>   
Hey Dan,

You could use a wild card so

rm -rf /opt/html/*

Would empty the directory




More information about the fedora-list mailing list