Delete Files Older Than x Days



The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.
find /path/to/files* -mtime +5 -exec rm {} \;
Note that there are spaces between rm, {}, and \;

The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.
The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.
The third argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

42 comments:

GST Training said...

What you're saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I'm sure you'll reach so many people with what you've got to say.

Buy Contact Lenses said...

I really appreciate your professional approach. These are pieces of very useful information that will be of great use for me in future.

Tangki Fiber said...

Definitely believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
Tangki Panel

2 player games said...

This is truly a decent and instructive, containing all data furthermore greatly affects the new innovation

Priya Sharma said...

I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work...
Delhi Escorts
Delhi Call Girls

osborn ronald said...

Your site fantastic, superior quality succeed... Most probably various should realize others despite that they don't take time to advise you.
Bathmate
best penis pump

jacke arce said...

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
bathmate penis pump

Sonam Sharma said...

You will find cases where the girl asks him to feel that this up and sets her customer's hand.
Call Girl In Delhi

Aditi Sharma said...

Welcome to Surat escorts service for female escorts in Surat. Surat escorts are available at 09925100066 . Find beautiful & sexy escorts for anywhere.
Surat escort
Escort Service Surat
Call Girls in Surat
Escort in Surat
Surat Escort Service
Escort Service in Surat
Independent Surat Escort
Independent Escort Service Surat
Surat Russian Escorts
surat escort service
Surat Call Girls

Aditi Sharma said...

Independent Udaipur Escorts
Housewife Escorts in Jaipur
Lucknow Escorts
Hyderabad Escorts Service
Kolkata Escorts
Pune Escort Girls
Russian Call Girls in Andhery
VIP Bandra Escorts
Bangalore Escorts
Chennai Escorts

Aditi Sharma said...

Surat escort girls available for your booking in all areas of Surat. Browse genuine Surat escorts portfolios, reviews and choose different types of escort Air-Hostess, House Wife Escorts, College Girls Escorts, Indian Model Escorts.
Surat escort
Escort Service Surat
Call Girls in Surat
Escort in Surat
Surat Escort Service
Escort Service in Surat
Independent Surat Escort
Independent Escort Service Surat
Surat Russian Escorts

Aditi Sharma said...

surat escort service
Surat Call Girls
Surat escort
Escort Service Surat
Call Girls in Surat
Escort in Surat
Surat Escort Service
Escort Service in Surat
Independent Surat Escort
Independent Escort Service Surat

Aditi Sharma said...

Surat Russian Escorts
surat escort service
Surat Call Girls
Surat escort
Escort Service Surat
Call Girls in Surat
Escort in Surat
Surat Escort Service
Escort Service in Surat

No #1 Gurgaon Escorts Service Agency-Gurugram said...




Also known to come with crucial offerings for its sensible, down-to-earth and important clients,Escorts Service in Gurgaon really means in fulfilling their lives with cheerful moments to make love in concern to ensure them live their lives in abetter way. Check our other Services...
Russian Call Girls in Gurgaon
Russian Escorts in Gurgaon
Russian Escorts in Gurgaon
Call Girls in Gurgaon
Call Girls in Gurgaon

Unknown said...



Our Call Girls in Ahmedabad have smooth bodies that can prepare you for a night of sexual loving. You don’t want to feel self-conscious as you’re safe here at our Call Girls agency. Our Services are all-time service that is accessible for you 24*7 hours. Our Escorts Girls are always prepared to make you fill you’ll have a fantastic alluring night with our lovely girls and you only need for believing simultaneously. Check our other Services also...
Independent Call Girls in Ahmedabad
Ahmedabad Call Girls Service
Call Girls in Hotels in Ahmedabad
Escorts in Ahmedabad
Escorts Service in Ahmedabad
Housewife Escorts in Ahmedabad
Hi Profile Escorts in Ahmedabad

kajalescort said...

Thanks for sharing the best information and suggestions,If you are looking for the best Escort Services In Surat, then visit Kajal Escort.Highly energetic blog, I’d love to find out some additional information.

Mesh Technology said...

Chandigarh Escorts
Ludhiana Escorts
Jalandhar Escorts
Lucknow Escorts
Surat Escorts
Noida Escorts

kajalescort said...

Thanks for shared that blog with us. If anyone here searching Escort Girl In Daman then visit Kajal Escort.

Suman Patel said...

Choose Independent Pune Escort carefully to get awesome entertainment

Sarita said...

Hi I am varsha working as a HR in Daman city. You can hire me to make your nights colorful and stunning.
Check out the mesmerizing beauties of our curvy college girls, horny housewives, magnificent models, dazzling airhostess escorts and seductive VIP escorts.
Daman Escorts by Varsha Chowdary
VIP Vapi Escorts

Sarita said...

sirohi Escorts
sirohi Escorts

Sarita said...

Escorts in Mount Abu
Escorts in Mount Abu

Megha Malik said...

Melt Ur Heart With Delhi Pleasure Girl Megha Malik
Megha Delhi Escorts Service

Delhi Escorts

delhi escorts

delhi escorts
delhi escorts
delhi escorts
Mumbai escorts

William Jessie said...

Very informative article, which you have shared here about the Pse Escort in London. After reading your article I got very much information and it is very useful for us. I am thankful to you for sharing this article here.Pse Escort in London

Suman Patel said...

if you are find daman call girls now you are a right place book our daman escorts

Riya Sen said...

Mount Abu Escort gives an advantage to the individuals to be confident about them; which in fact in real life, some people lack this quality.
Escorts Service mount abu
Escorts Service mount abu
Escorts Service mount abu
Escorts Service mount abu

Riya Sen said...

ambaji escort service
ambaji escort service
ambaji escort service
ambaji escort service
ambaji escort service
ambaji escort service
ambaji escort service

Riya Sen said...

Independent abu road escorts service
Independent abu road escorts service
Independent abu road escorts service
Independent abu road escorts service
Independent abu road escorts service
Independent abu road escorts service
Independent abu road escorts service

Riya Sen said...

silvassa escort service
silvassa escort service
silvassa escort service
silvassa escort service
silvassa escort service
silvassa escort service
silvassa escort service
silvassa escort service

Miss Ambaji Model said...

Miss Mount Abu Escorts
Mount Abu Escorts -Nayra
Vadodara Escorts - Vanishkajain
Daman Escorts - VarshaChowdary
Mount Abu Escorts- Hema
Mount Abu Escorts - Ramya
Mount Abu Escort
Mount Abu Escorts - Bindu
Mount Abu Escorts Service

Miss Ambaji Model said...

Mount Abu Escorts - ParulBehal
Rajkot Escorts
Ajmer Escorts- Jaincy
Daman Escorts Service
Call Girls Service in Mount Abu
Daman Escorts - DaminiPandey
Mount Abu Model Escorts
Mount Abu Escorts- Mountabuangels

Miss Ambaji Model said...

Vapi Daman Escorts
Mount Abu Escorts - VipMountAbuEscorts
Vapi Escorts Services
Vapi Escorts
Ahmedabad Escorts - Sehenajkhan
Vapi Escorts Agency

Miss Ambaji Model said...

Mount Abu Escorts
daman escorts service
ajmer escorts service
rajkot escorts service
ahmedabad escorts service
vapi escorts service
vadodara escorts service
sirohi escorts service

Miss Ambaji Model said...

junagadh escorts service
surendranagar escorts service
bhavnagar escorts service
somnath escorts service
veraval escorts service
dahod escorts service
kheda escorts service
botad escorts service

Miss Ambaji Model said...

Mount Abu Escorts
daman escorts service
ajmer escorts service
rajkot escorts service
ahmedabad escorts service
vapi escorts service
vadodara escorts service
sirohi escorts service

Miss Ambaji Model said...

https://mount-abu-call-girls-31.webselfsite.net/
https://missramya.mystrikingly.com/blog/5-things-you-need-to-know-about-dating-online-from-bindu
https://missramya.mypixieset.com/

Vanishka Jain sexy said...

dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service
dholpur escort service

Vanishka Jain sexy said...

Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh
Call Girls in Kumbhalgarh

Vanishka Jain sexy said...

Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra

Vanishka Jain sexy said...

Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra
Call Girls in Godhra

komdre said...

Guys just sharing, I've found this interesting! Check it out!

Escort Erotic Massage |

sanshi said...

Thanks for your sharing great article, I am very happy to read this article and I like it very much!I would also recommend it to my friends.
sun news live
sun news
sun tv live
news 7 live
sun news live today
sun tv news
sun tv news live
sun tv live news
சன் நியூஸ்
thanthinews

Post a Comment

Popular Posts