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 {} \;

  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

How to change the target of a symbolic link

To change the target of a symbolic link in linux, you can use the following command. ln -f -s...

Monitor Linux software RAID array with e-mail notification

When using software RAID on Linux, one fast way to know the status of your RAID array is to check...

Searching for files containing a specific text string in Linux

The find and locate commands are great for finding files themselves, but sometimes you need to...

Powered by WHMCompleteSolution