cPanel's File Manager interface lets you manage, upload, and download your account's files. This tutorial includes instructions for using File Manager's compression and extraction options when working with multiple files at the same time.
Using File Manager To Compress Files
1. Log in to your cPanel account.
2. Browse to cPanel >> File Manager and navigate to the folder used to store the files you want to compress. In this example, we'll use the public_html/Downloads folder seen in the upper left corner of the image below:
3. Highlight every file you want to compress.
A. MacOS users can use the "command ⌘" key combination to highlight multiple files at the same time.
B. Windows and Linux users can use the "ctrl" key to highlight multiple files at the same time.
4. Verify every file to be compressed is highlighted, and click on the "Compress" link in the top right corner as seen in the image below:
5. Choose your desired archive type and click the Compress File(s) button seen in the image below:
6. File Manager will present you with Compression Results upon the compression of your files. Here's an example of how this will look:
7. Confirm all of your selected files were compressed, close the window, highlight the newly created archive, and download it using the Download link seen in the image below:
Using File Manager to Upload and Extract Compressed Files
1. Use one of the methods below if need to compress files(s) on your local workstation:
A. Command Line - Linux and MacOS Users
Linux and MacOS Users can compress file(s) by executing the tar or zip command from their workstation's command line.
To start, use the cd command to browse to the directory where you want to store your compressed file. For example:
Now you're ready to create a .tar.gz or .zip file in this directory.Code:cd /path/to/preferred/directory/
Here's an example of how to use the tar command:
The z, c, v, and f flags used in this command are defined below:Code:tar -zcvf cptest.tar.gz /home/cptest
Here's an example of how to use the zip command:
After the tar or zip command finishes, you can find the newly created archive in your current working directory.Code:zip cptest.zip /home/cptest/*
B. Desktop - MacOS and Windows Users
MacOS and Windows Users can compress files directly from their Desktop. The default compression on MacOS and Windows is zip.
To compress your file(s) on MacOS, highlight the desired files in Finder, right-click, and select Compress to create an archive. Here's an example of what you should see on MacOS:
Windows users can perform similar steps. Simply highlight the files you want to compress in your file explorer window, right-click, and select the Compress option.
2. Log in to your cPanel account.
3. Browse to cPanel >> File Manager, navigate to the folder you wish to upload the compressed file to and click on the Upload button to bring up the interface seen in the image below:
Drag and drop (or use Select File) to choose the compressed file to upload.
4. A green progress bar will indicate if the upload was successful:
5. You can now navigate back to File Manager by clicking the Go Back to “/home/username" link seen at the bottom of the above image.
6. Select the newly uploaded compressed file and click on the Extract button seen in the top left corner of the File Manager interface. Here's an example of what you should see as the extraction completes:
Feel free to click on the Discussion tab to let us know if you have any questions or feedback about the information in this tutorial.
Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!