Ben Shi

Blog Post

Recursively change permission on files and directories

Posted Under: notes
October 31, 2012

Recursively change permission on ONLY directories

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

Recursively change permission on ONLY files

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

Recursively change permission on a certain file extension

find . -type f -name '*.css' -exec chmod 644 {} \;

Ben Shi

I'm Ben Shi, a Sydney-based Full Stack Software Engineer specialising in micro-services and API development. This is a playground for me to document my learnings and experiences as a technologist.

You can find out a little bit more about me over here.

Contact: [email | twitter| linkedin]