Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active August 13, 2020 16:03
Show Gist options
  • Save SunDi3yansyah/e09d4a535bbd1da480c0ab59804c2228 to your computer and use it in GitHub Desktop.
Save SunDi3yansyah/e09d4a535bbd1da480c0ab59804c2228 to your computer and use it in GitHub Desktop.
Chmod for default directory on macOS

Chmod for default directory on macOS

chown -R $(whoami) ~/.path
find ~/path -type f -exec chmod 600 {} \;
find ~/path -type d -exec chmod 700 {} \;
chown -R $(whoami) ~/path
find ~/path -type f -exec chmod 644 {} \;
find ~/path -type d -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment