Change permissions on folders/files only

published on January 11, 2011.
Heads-up! You're reading an old post and the information in it is quite probably outdated.

This is just a quick reminder for myself. Should really remember this one. Changes permissions on folders|files only.

$ find /path/to -type d -exec chmod 775 {} \;
$ find /path/to -type f -exec chmod 664 {} \;
Tags: permissions, shell.
Categories: Development.

Thanks for reading! If you require help on a project of any kind, let's talk!

Robert Basic

Robert Basic

Software engineer, consultant, open source contributor.

Let's work together!

If you require outsourcing or consulting help on your projects, I'm available!

Robert Basic © 2008 — 2019
Get the feed