To set the WordPress file and folder permissions in Linux terminal:
Go to the WordPress directory:
cd /path/to/wordpress/Change all directories to 755:
sudo find . -type d -exec chmod 0755 {} \;Change all files to 644:
sudo find . -type f -exec chmod 0644 {} \;