I have these commands:
find /var/www/html/* -type d -exec chmod 755 {} \;
find /var/www/html/* -type f -exec chmod 644 {} \;
I understood from Stephen Kitt's answer here that I could combine them this way:
find /var/www/html/* -exec chmod a-x,a=rX,u+w {} \+
These chmod
arguments are less comfortable for me to read, especially in the find
syntax (I've yet to become familiar with the nix meaning of the combos like a-x
, a=rX
, and u+w
and I don't have the time and peacefulness of mind to learn it in a serious way in the coming days).
Is it possible to use numbers there? If not, there might be a bit more comfortable way to unite the two commands even if a tiny bit longer than the particular one proposed?