Skip to content

Muthii's blog

Just another page out of my life

Tag: Delete files older than x days

Posted on June 1, 2009June 1, 2009

Delete files older than 7 days

Command to delete files older than x days

find /your_directory -mtime +7 -exec rm -f {} \;

works great for my mysql backup folder.

February 2026
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
« Nov    
  • Code
  • Computer
  • Family
  • Health
  • Internet
  • Java
  • Life
  • Linux
  • Linux Scripts
  • Old
  • server
  • Software
  • Windows
  • Forward ROOT mail to a user
  • Setup Couchpotato with virtualenv
  • java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass
  • Chomebook Secure Shell – Remove ssh key from known_hosts
  • No appropriate protocol
Proudly powered by WordPress