2 views
by
# First list files older than 10 days
find ./ -mtime +10 -exec ls -ltr {} \;
# Delete files older than 10 days
find ./ -mtime +10 -exec rm {} \;

be careful, rm command would delete files!

Welcome to Ask DevOps!
You can find quick one line answers to popular DevOps, Amazon AWS, Microsoft Azure, Google cloud services, tools & basic to advanced Linux questions!
DevOps Tools list


Releasing soon:
Password Generator
.. 
...