>>>>> "Binand" == Binand Raj S <[EMAIL PROTECTED]> writes:
Binand> Dwivedi Ajay kumar wrote:
>> hi all, I have got a dircetory with all its subdirs and files
>> in the mode 700. I wish to change the mode of all the
>> directories to 755 and files in them to 644. Is there a way it
>> can be done easily? chmod does not seem
Binand> The following 2 comands will do the trick:
Binand> find . -type f -exec chmod 644 {} \; find . -type d -exec
Binand> chmod 755 {} \;
If there's a large number of files, it's faster to:
find . -type f | xargs chmod 644
find . -type d | xargs chmod 755
Or even, (if you like dirty stuff like I do)
chmod 644 `find . -type f`
chmod 755 `find . -type d`
Much less CPU needed to do it this way, since there's only 2
fork-exec's, instead of one fork/exec per file.
Regards,
-- Raju
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr