DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Linux - Change File/Directory Permissions Separately

06.02.2008
| 11397 views |
  • submit to reddit
        Change permission of all files or all directories separately from a set starting point.

// Directories:
find . -type d -exec chmod XXX {} \;

// Files:
find . -type f -exec chmod XXX {} \;