Often, I find myself needing to make a tree of directories executable for someone, ie:
find . -type d -exec chmod ug+x {} \;
But I don’t like the overhead of find, and running a “new” chmod for every dir.
You folks have preferred alternatives? Why?
This one should have much less overhead:
(Replaced
\;by+.) This does the same thing, but callschmodwith many directories at once, which eliminates the overhead of callingchmodmultiple times.This is quite similar to this: