I want to recursively chmod all of the subdirectories below my calcium directory:
chmod a+wx calcium
How do I change the above command to do this?
I believe I'm using bash shell although I'm not sure how to verify this.
I want to recursively chmod all of the subdirectories below my calcium directory:
chmod a+wx calcium
How do I change the above command to do this?
I believe I'm using bash shell although I'm not sure how to verify this.
$ echo $SHELL
should tell you what shell you are using. But that likely doesn't matter, since chmod
is an executable that any shell would call just the same.
chmod -R
is going to do it on everything, not just directories.
To target only directories you can use find + xargs
find calcium/ -type d | xargs chmod a+wx