Blog Post

Recursively change permission on files and directories

🗓 October 31, 2012 :: 🕑 1 min read :: 👏 0 💬 0

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

Recursively change permission on ONLY directories Recursively change permission on ONLY files Recursively change permission on a certain…

https://hbish.com/recursively-change-permission-on-files-and-directories/


Fetching Replies...