Unix Super Tip: How to CHMOD all your files recursively

Problem: How do I set permissions to my files and/or directories without manually setting them up individually?

Note: You may need administrator privileges for these to work, if that’s the case simply add a sudo before typing the commands below.

If you want to chmod all your directories:

find . -type d -exec chmod 755 {} \;

and for files:

find . -type f -exec chmod 644 {} \;

That’s it!

Some links that you might find useful [External]:

Related posts:

  1. Unix Super Tip: Easy Access to your files and directories by creating symbolic links(shortcuts)
  2. How to Fix: I’m unable or can’t copy, move or delete files in MAC because of insufficient privileges or permissions
  3. How to: Delete/Remove protected folders and files from a previous installation of Windows
  4. Super Tip: Pass Arguments in your Python Bindings using Lambda Functions
  5. Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!

Still can't see what you're looking for?



Did that help you out? Please leave a comment!

Anti-Spam Protection by WP-SpamFree