Change directory and folder permissions on mass
Recently, I was doing some work on the on a MediaWiki installation. For some reason I had all the permissions set up wrong.
Obviously, MediaWiki has thousands of files to change.
So first of all, in the shell, I ran the command from public_html directory:
find -xtype f |xargs chmod 644
That changed the the files. I then ran the following command from the public_html director:
find -xtype d | xargs chmod 755