Change file permissions. This example grants the owner execute permission.
chmod u+x ./script.shLINUX COMMAND ATLAS · COMMAND GUIDE
Change file permissions. This example grants the owner execute permission.
GNU Coreutilschmod [OPTION]... MODE FILE...
Change file permissions. This example grants the owner execute permission.
chmod u+x ./script.shSet owner read/write and group read permissions.
chmod 640 ./secrets.txtRecursive permission changes can expose or break files. Avoid applying a single mode blindly to mixed files and directories; inspect with ls -l first.