Unzip files with SSH
When unzipping large files or if you don't have access to a file manager, you'll need to use a Secure Shell (SSH) connection to extract files.
Required: You'll need an SSH app to complete these steps. We suggest PuTTY for Windows, or Terminal for macOS.
- Connect to your hosting with FTP.
- Upload your file in the .tar.gz or .zip format to a folder in which you want to unzip the file.
- Connect to your hosting account with SSH.
- Use the command ls to list files and folders, and cd and ../ to move through directories until you are in the directory to which you uploaded the file.
- Use one of the following commands depending on the type of file you uploaded:
- To extract a .tar.gz file enter:
tar -xvzf filename.tar.gz
- To extract a .zip file enter:
unzip filename.zip
- To extract a .tar.gz file enter:
- Select Enter on your keyboard.
Your file is now extracted in the folder to which you uploaded it.
More info
- Compress folders in SSH
- If you don't want to use SSH, there are other ways to unzip a zip file on your hosting account.