Whether you need to bundle dozens of documents to email to a colleague, save storage space on a flash drive, or prepare an organised package for upload, compressing files into a ZIP archive is a routine computing task. While Linux is famous for its terminal commands like zip -r and tar -czvf, Ubuntu provides an effortless graphical tool built directly into the desktop file manager.
You can compress individual files, multiple documents, or entire folder directories into standard .zip or high-compression .tar.xz archives with just a right-click. Here is how to create compressed archive folders in the Ubuntu GUI.
Why Use Standard ZIP Archives in Ubuntu?
While Linux native formats like TAR and GZ offer great compression for server backups, the ZIP format remains the universal standard for sharing files across different platforms:
- Cross-Platform Compatibility: ZIP files open natively on Windows, macOS, Android, and iOS without requiring third-party extraction tools.
- Email Friendly: Combines multiple loose files and folders into a single downloadable attachment.
- Password Protection: Ubuntu allows you to encrypt your ZIP archive with a secure password during creation.
How to Create a ZIP Archive in the Ubuntu Files Application
Follow these simple steps using the default Ubuntu Files manager (Nautilus):
- Open the Files application from the Ubuntu dock or application menu.
- Navigate to the folder containing the items you wish to compress.
- Select the files or folders:
- To select multiple non-adjacent items, hold down Ctrl and click each file.
- To select a continuous range, click the first file, hold down Shift, and click the last file.
- To compress an entire folder, simply highlight the single folder.
- Right-click on the highlighted selection.
- Select Compress… from the contextual menu.
- A dialogue box will appear prompting you to name your archive and select a compression format.
- Type your desired archive name in the File Name field.
- Select .zip from the format options (or choose .tar.xz if creating a high-compression Linux archive).
- Click the Create button in the top-right corner of the dialogue.
Ubuntu will compress the selected data and generate your new .zip file in the current directory within seconds.
How to Password Protect Your ZIP File in Ubuntu
If you are compressing confidential documents or financial records, Ubuntu allows you to password-protect the archive:
- Follow the steps above to open the Compress… dialogue.
- Select the .zip format.
- Look for the option labelled Password or expand Other Options.
- Type a secure password into the field.
- Click Create.
Anyone attempting to extract the archive on Windows, Mac, or Linux will be prompted to enter your password before viewing its contents.
How to Extract a ZIP File in Ubuntu
To extract any ZIP file you receive or create, simply right-click the archive and select Extract Here (to unpack files in the current directory) or Extract to… to select a specific destination folder.