linux recursively set directory permissions code example Example: chmod recursive -R, --recursive chmod -R 755 /path/to/directory