gh copilot suggest 'recursively change file permissions to 644 and directories to 755'

Category: GitHub Copilot

gh copilot suggest 'recursively change file permissions to 644 and directories to 755'

Get a chmod command for mixed file/directory permissions

This is a classic tricky task. Copilot will suggest using find with two separate -exec chmod commands: one for files (-type f, chmod 644) and one for directories (-type d, chmod 755).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.