> find dir/ -type d | xargs chmod 755 > find dir/ -not -type d | xargs chmod 644 Seems like it would do the trick, but there are 20gb of files to sort through here, what would be the best (fastest) way?