i want to set sticky bit for all directories in a directory excluding files. is there any wild card to do this?
#sudo chmod g+s /var/www/<WILD_CARD_FOR_ALL_DIRECTORIES>
directorywildcards
i want to set sticky bit for all directories in a directory excluding files. is there any wild card to do this?
#sudo chmod g+s /var/www/<WILD_CARD_FOR_ALL_DIRECTORIES>
Best Answer
Use
*/
to match only directories.To match all directories and subdirectories use
**/*/
(provided you haveglobstar
enabled in bash):