Starck Lin

Coding

  • 最常用的 SublimeText Plugins 和 Key Bindings
  • Backbone.js notes
  • Laravel 4 Tutorial Part 1 - Installation and Configuration
  • ExpressionEngine Notes
  • Using CodeKit with Foundation and Bootstrap
  • Nginx with Apache + FastCGI + PHP-FPM
  • Git Deployment Solution
  • Rquire.js with Jasmine 2
  • Viewing Chrome Cache
  • Custom Composer Repositories

Design

  • Flat UI - Web Interface Kit
  • Inspiration 2013-04-01
  • The Beauty of Data Visualization
  • Single Web Page Design
  • Foundation 4 Grid hack for IE8
  • Guard is My Best Friend
  • Print and Bound Books
  • A Solution for Cross Browser Testing
  • SOLID principles
  • Inanna Identity Design

Log

  • [MacOS] mysql.sock error
  • 轉移 beyond.com.tw
  • Building Your Jsbin Service
  • Laravel 4 Tutorial Part 2 - Migrations and Artisan
  • Vim Page Scroll in Terminal.app
  • SSL Certificate Installation on Nginx or Apache
  • Upgrading PHP on MacOS
  • Correct the Issue of Category Display
  • Using start-stop-daemon on CentOS
  • Bash Prompt and ANSI Color
© 2011 - 2026
Theme by WPShower

How to recursively give directories or files access permissions?


To recursively give directories read & execute privileges:

find /path/to/base/dir -type d -exec chmod 755 {} +

To recursively give files read privileges:

find /path/to/base/dir -type f -exec chmod 644 {} +


Or, if there are many objects to process:

chmod 755 $(find /path/to/base/dir -type d)

chmod 644 $(find /path/to/base/dir -type f)


Or, to reduce chmod spawning:

find /path/to/base/dir -type d -print0 | xargs -0 chmod 755

find /path/to/base/dir -type f -print0 | xargs -0 chmod 644