Changing permissions on directories only

You may need to change permissions for directories under a directory tree, without changing permissions for the files themselves.

In the example below, all sub-directories under the current directory will have execute bit set for owner, group and everyone else.

find . -type d -exec chmod a+x {} \;



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read