Skip to content

Instantly share code, notes, and snippets.

@piotrkubisa
Forked from pjdietz/permissions.bash
Created September 22, 2016 21:25
Show Gist options
  • Save piotrkubisa/c8a1e821e0b48ff8587446d192f5318a to your computer and use it in GitHub Desktop.
Save piotrkubisa/c8a1e821e0b48ff8587446d192f5318a to your computer and use it in GitHub Desktop.
Set file and directory permissions with find, xargs, chmod
# Set all directories to 755, all files to 644.
find -type d -print0 | xargs -0 chmod 755
find -type f -print0 | xargs -0 chmod 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment