sorry if this is asked before but, I was curious about what is the equivalent Linux command of forfiles.exe in Windows? This came to my mind when I saw this question
feedback
|
|
| |||
feedback
|
|
I think find provides the functionality that forfiles offers. | |||
feedback
|
|
The find command does what you want. Here's an example:
This will delete all the jpg files from Here's a correspondence between the parameters of forfiles and the parameters of find:
| ||||
|
feedback
|
|
You can create a cron job that uses find with the appropriate arguments, e.g. -mtime +7 | |||||
feedback
|