Technology related solutions, tips, tricks, and other interesting topics
In: General IT Info
6 Jun 2008Command to recursively chmod only directories:
find . -type d -exec chmod 755 {} \;
How to recursively set the execute bit on every directory:
chmod -R a+X *
The +X flag sets the execute bit on directories only
How to recursively chmod only files:
find . -type f -exec chmod 644 {} \;
How to recursively chmod only PHP files (only for PHP files with the extension .php):
find . -type f -name '*.php' -exec chmod 644 {} \;
You can change the “.php” in the line above to whatever file extension that you want.

This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.