On Mon, 2002-12-16 at 16:33, Benj wrote:
> Joon Guillen wrote:
>
> > Quick question: How do I chmod recursively DIRECTORIES ONLY? For
> > example, I'd want to chmod the /usr dir and everything inside it, but
> > ONLY the directories and not the files nor symbolic links.
>
> # find /usr -type d -exec chmod <mode> {} \;
Excellent! Works like a charm. One more question, though: what are the
"{}" and "\;" characters for?
> This might not include /usr though. Please check.
Yup, it includes the top directory itself. Thanks much!
--
Joon Guillen
================================
So computers are tools of the Devil? thought Newt. He had no problem
believing it. Computers had to be the tools of _somebody_, and he knew
for certain that it definitely wasn't him.
from "Good Omens", Neil Gaiman & Terry Pratchett
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]