I have a directory say foo
with permission rw-r----x
. I want to change the permission to r-xr--r-x
. I can do it like chmod u-w foo, chmod u+x foo, chmod o+r foo
. I was wondering if there is a way to combine these three commands into one without using octal numbers.
Changing multiple permissions with one single command
command linelinuxpermissions
Best Answer
You can just list with commas.
You can also use the = syntax.