lang • chmod

CHMOD

Since 3.1

CHMOD Path TO Mode

Change the permissions of the specified file or directory.

The syntax of the Mode string is described here.

Moreover, any omitted or unknown character in that string is ignored. That way, you can change only specific parts of the file permissions you need to change.

Examples

Chmod "~/Documents" To "rwxr-x---"

See also