Answer the question
In order to leave comments, you need to log in
How in Lunix (Debian) to delete all subfolders for the last 3 months?
Good afternoon!
I have a lot of subcategories with pictures in my pictures folder as well.
Can you please tell me how to delete all subfolders created only for the last 3 months, for example?
Thanks
Answer the question
In order to leave comments, you need to log in
find /yourdirectory -type d -ctime -180 -delete
starting from /yourdirectory looking for all folders (type -d) that were created (ctime) within the last 180 days
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question