Change Permissions Recursively

Change Permission on Folder/Files Recursively[^1]

GOOD

find /path/to/base/dir -type d -exec chmod 755 {} +

find /path/to/base/dir -type f -exec chmod 644 {} +```

BETTER

find /path/to/base/dir -type d -print0 | xargs -0 chmod 755

find /path/to/base/dir -type f -print0 | xargs -0 chmod 644

BEST

chmod -R u+rwX,go+rX,go-w /path

source uparrow ➚