Set rwx permissions numerically.
Section: Permissions Ownership and ACLs
Change permissions with numeric mode
bash
bash
chmod 640 secrets.envExplanation
Numeric modes are concise and script-friendly.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Permissions Ownership and ACLs