Change attribute of all sub directories:
find . -type d -or -name "*.sh" | xargs chmod 777
Change attribute of all files:
find . -type f | xargs chmod 666
To avoid the problem because of space in directory/file name, use the following option:
find . -type d -or -name "*.sh" -print0 | xargs -0 chmod 777
find . -type f -print0 | xargs -0 chmod 666
record my way to ubuntu
Friday, May 21, 2010
Subscribe to:
Posts (Atom)