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. How to: Delete/Remove protected folders and files from a previous installation of Windows
  2. Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!
  3. Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code

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



Did that help you out? Please leave a comment!

Anti-Spam Protection by WP-SpamFree