Changing permission for all directory only
|
Author |
Message |
|
|
Posted : Wed, 30 July 2008 02:33:35
Subject :
Changing permission for all directory only
Usually we use this command below to changing permission for files & directories recursively:
[code]chmod 664 -Rf *[/code]
But what is the command if I want to change permission for directories only recursively?
Thanks
|
|
|
|
Johannes Truschnigg
|
Posted : Wed, 30 July 2008 12:48:55
Subject :
Re: Changing permission for all directory only
[code=xml]find /path/to/starting/directory -type d -exec chmod 775 {} +[/code]
Just substitute [b]/path/to/starting/directory[/b] and [b]775[/b] according to your specific needs.
|
|
waro
|
Posted : Thu, 31 July 2008 01:27:51
Subject :
Re: Changing permission for all directory only
Thank you for the answer. One question though, what is the '+' symbol at the end the command?
|