Skip to content

Instantly share code, notes, and snippets.

@sridharraman
Created March 3, 2014 10:27
Show Gist options
  • Select an option

  • Save sridharraman/9322249 to your computer and use it in GitHub Desktop.

Select an option

Save sridharraman/9322249 to your computer and use it in GitHub Desktop.
Change permissions for folder and files recursively from the terminal
To change all the directories to 755 (-rwxr-xr-x):
find . -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find . -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment