3 ms·
There are a few dark corners, e.g. mkdir dir chmod a-x dir mkdir -p dir Will not give you the permissions on dir that you want, typically. I've come
by emmelaich 5y ago
There are a few dark corners, e.g.
mkdir dir
chmod a-x dir
mkdir -p dir
Will not give you the permissions on dir that you want, typically.
I've come to the idea that the best thing to guarantee what you want is
mkdir the-new-dir.temp-jnsjw23
<do things to the-new-dir.temp-jnsjw23>
rsync -a --delete the-new-dir.temp-jnsjw23 the-new-dir