On Wed, 7 May 2008 07:37:47 -0500
Gordon devel <[EMAIL PROTECTED]> wrote:

> On Wed, May 07, 2008 at 01:56:42PM +0200, Zbigniew Szalbot wrote:
> > 
> > How do I chmod separately files and directories?
> > 
> > If I use chmod -R 644 then it will go through all the
> > subdirectories assigning everything 644 permissions, directories
> > including.
> > 
> How about?
> 
> find . -type d -exec chmod 755 {} \;
> find . -type f -exec chmod 644 {} \;
> 
> If there are a lot of them, you might want to pipe to xargs.

Or you could  "+" instead of \;
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to