Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
cPanelResources

Tutorial How To Compress and Extract Files With File Manager

Use File Manager's compression and extraction features when working with multiple files at once.

Tags:
  1. cPanelResources
    Overview
    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:

    File Manager Home.png

    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:

    Click to Compress.png

    5. Choose your desired archive type and click the Compress File(s) button seen in the image below:

    Compression Type.png

    6. File Manager will present you with Compression Results upon the compression of your files. Here's an example of how this will look:

    Compression Results.png

    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:

    Download archive.png

    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:

    Code:
    cd /path/to/preferred/directory/
    Now you're ready to create a .tar.gz or .zip file in this directory.

    Here's an example of how to use the tar command:

    Code:
    tar -zcvf cptest.tar.gz /home/cptest
    The z, c, v, and f flags used in this command are defined below:

    Here's an example of how to use the zip command:

    Code:
    zip cptest.zip /home/cptest/*
    After the tar or zip command finishes, you can find the newly created archive in your current working directory.

    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:

    Mac Compress.png

    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:

    sFzcYVW.png

    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:

    2SgsBFF.png

    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:

    uncompress.png WKd7UFS.png

    Questions/Feedback
    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice