find command examples
· ☕ 3 min read · ✍️ Sathya
I’ve used find extensively and always wanted to writeup a nice post on this, but the linked post trumps my effort! Copy pasted from his blog, as the person’s allowed to do so. Also, as a general note - before using exec with the actual command, do preview it! ` —————————————————————————————— remove empty directories —————————————————————————————— find . -depth -type d -empty -exec rmdir ` —————————————————————————————— change various file attributes ——————————————————————————————