Linux- Recursively change permissions on files or directories only
Thursday, March 25, 2010 22:33Posted in category Unix/Linux
No Comments
If you wondered how to change permissions recursively on files or folders only, here is the how to using the find command.
Change permissions recursively to directories only:
find /path/to/folder -type d -exec chmod 0755 {} \;
Change permissions recursively to files only:
find /path/to/folder -type f -exec chmod 0644 {} \;
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.