Unix Incantations
Monday, June 20, 2011
find 3
First, find all directories starting in the current directory and recursing deeper, and chmod them all to 755.
find . -type d -exec chmod 755 {} \;
Then, find all files starting in the current directory and recursing deeper, and chmod them all to 644.
find . -type f -exec chmod 644 {} \;
Sweet.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment