linux chmod chmod Directories find . -type d -exec chmod 755 {} \; Files find . -type f -exec chmod 644 {} \;