- Home
- Uncategorized
- Unzipping WordPress Files in Same Directory (Not in /wordpress folder)
Unzipping WordPress Files in Same Directory (Not in /wordpress folder)
First, cd into the folder you want to install WordPress into:
cd /var/www/html/sites/myNewSite
Next, download the WordPress archive file:
sudo tar -xzvf latest.tar.gz
Finally, extract the files right into your present working directory:
sudo tar --strip-components=1 -xzvf latest.tar.gz
Note the –strip-components=1 parameter, this is what does the magic and puts the files directly in your same folder instead of the default behavior of creating and populating a /wordpress directory