BitBonsai Labs Mauricio Wolff's geekness

14Dec/091

recursively chmod only subdirectories

When I use Betterzip to uncompress a directory tree, it chmods the dirs with 700. Here's the command to solve this:

find . -type d | xargs chmod 755

It finds all subdirectories and chmod'em to 755. Clever, isn't it?

Comments (1) Trackbacks (0)
  1. Thanks, you got me started in the right direction at least, but it didn’t work so good for me, I had lots of spaces in directories so had to use the following…

    find . -type d -exec chmod 755 ‘{}’ \;


Leave a comment


No trackbacks yet.