If you have shell access to your server, then which of the following commands can you use to change the file permissions for Directories recursively?

If you have shell access to your server, then which of the following commands can you use to change the file permissions for Directories recursively?

  • find /path/to/your/wordpress/install/ -type d-exec chmod 777 {} \;
  • find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;
  • locate /path/to/your/wordpress/install/-type f-exec chmod 644 {} \;
  • find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;