I'm new with server maintenance job.
Now I must find and delete .JPG File older than 3 years. on linux terminal
I have googled and found a script like this
find /path/to/files* -mtime +365 -exec rm {} \;
or
find /path/to/files* -mtime +365 -delete;
I have tried this
find /path/to/files* -mtime +1095 -exec rm {} \;
or
find /path/to/files* -mtime +1095 -delete;
But it didn't work, I think my file is too big to be found.
Can anyone help me to fix this..?
Or maybe there's another way?
I would appreciate your answer a lot.
Thanks