Fix File and Folder Permissions for WordPress on Bitnami GCP

For the optimal and secure WordPress permissions. You can run the following commands by SSH’ing into the linux terminal (I’m using Debian 8 on the Google Compute Engine). We may have to change the Owner and Group of the WP folders, depending on how you’ve uploaded your WordPress site. Let’s fix the ownership and group …

Deleting a Directory and all subfolders on Linux via the command line

Deleting folders using the -r command will recursively delete all sub folders and files within your selected directory. A confirmation prompt will be displayed for each file. rm -r directory/path/here Use -rf to delete all directories and files in one strike, no confirmation prompt will be displayed. Always double check your directory path or it’s …

Unzip via Terminal on Linux

First install unzip if the command isn’t available sudo apt-get install unzip Then select the file to unzip unzip path/to-the/file.zip Or unzip file to a specific location unzip path/to-the/file.zip -d destination/folder