Code Library

Library of HTML, CSS, PHP, SQL, JavaScript & jQuery Code Snippets

  • CodeLibrary:~
  • Command Line
  • Linux
  • Mac

Recursive chmod only on directories

Run find on -type d (directories) with the -exec primary to perform the chmod only on folders:

find /your/path/here -type d -exec chmod o+x {} \;

To be sure it only performs it on desired objects, you can run just find /your/path/here -type d first; it will simply print out the directories it finds.

17th November 2014 Command LineLinuxMac

Copyright © 2012, 2025 Code Library. All rights reserved.