26 April 2017

chmod

Todays useful tip:


The linux chmod command has two x operands, x (small) and X (big)

Small x means set the execute bit no matter what.

Big X means set the execute bit only on folders (and files where the execute bit is already set, in other words dont break script files)

This means you can do a recursive chmod and set the execute bit correctly.

eg.
chmod -r a+rwX


Its the little things.
*sigh*