Recursively set permissions on directories

The following command will execute a command on a directory and all its sub-directories:

$ find plugins -type d -exec chmod g+w {} \;

In this case, we’re changing the group permissions on the plugins directory and all sub-directories.

 

Leave a Reply