Using the Find command

A few different ways to utilize this powerful command.

Set different permissions on files and folders

sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;

Remove files older than 5 days

find . -mtime +5 -delete;

I was supposed to finish this article, but the above is good enough for now…

Leave a comment

Your email address will not be published. Required fields are marked *