root@host [~]# find . -type f -print0 | xargs -0i chmod 644 {}
root@host [~]# find . -type d -print0 | xargs -0i chmod 755 {}
Tags: chmod, find, print0, xargs
This entry was posted on Sunday, June 14th, 2009 at 8:36 am and is filed under Tips & Tricks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Name (required)
Mail (will not be published) (required)
Website