I'm running the command sudo find /var/www/html -type d -exec chmod g+s {} \;
from here
It's said there that "We can set the setgid bit on every directory in our WordPress installation by typing the above command".
The question is what do {} and / mean?
Running find --help gives Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec|time] [path...] [expression]...
So it seems like the above signs are somehow related to [path...] [expression], but their meaning is not clear.
If you look at the man page for
findyou'll see that-execwill execute the command for every single result found. It will determine the end of the command by\;It will also insert the name of the directory found at
{}. So the command above says find every directory under /var/www/html and executeschmod g+son it.excerpt from man page: