Forrest logo
back to the find tool

find:ai:55a96

how do I delete .sql files older than
$ find ${filename}s -name '*.sql' -mtime +30 -exec rm {} \;
try on your machine

This command finds all .sql files in the specified directory (replace '/path/to/files' with the actual directory path) that are older than 30 days and deletes them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do I delete .sql files older than?
back to the find tool