chmod all files to 644 and all directories to 755

Found these commands very useful. I needed to change a directories and all it's subdirectories to 755 permission and all the files as well to 644. Found this:
find . -type d -print0 | xargs -0 chmod 0755 # For directories
find . -type f -print0 | xargs -0 chmod 0644 # For files

from http://www.linuxquestions.org/questions/linux-general-1/chmod-all-files-.... Thanks to 'General Failure'.

You have viewed this page 1 times