ZipToolView zip files online — 100% private

How to unzip a file on Linux

There are three good ways to unzip a .zip on Linux, and which is best depends on the machine and what you are doing. The command line — the unzip utility — is the default and the fastest once it is installed. A GUI archive manager (File Roller on GNOME, Ark on KDE) is the right pick on a desktop when you want point-and-click. And an in-browser unzip — drop the zip on a page like ZipTool — is for when you cannot or do not want to install a package, want to preview the contents before extracting, or want the file never uploaded.

This page covers all three honestly. The terminal and GUI are the native tools and cover most cases; the browser path is the no-apt-install, no-upload alternative that also lets you look inside before you commit to unpacking anything.

Method 1 — Unzip with the `unzip` command

The unzip utility is the standard Linux way to extract a zip. It may already be installed; if not, your package manager adds it in one command. It is the right default when you are on the terminal or scripting a job.

  • Install it if missing. Debian/Ubuntu: sudo apt install unzip. Fedora/RHEL: sudo dnf install unzip. Arch: sudo pacman -S unzip.
  • List the contents first (good practice on an unfamiliar archive): unzip -l archive.zip. This shows every entry and its size without extracting anything.
  • Extract: unzip archive.zip unpacks into the current folder. To choose a destination: unzip archive.zip -d target_folder/.
  • Extract a single file: unzip archive.zip path/to/file.txt pulls just that entry.

Other command-line options

If you already have 7z (p7zip-full), 7z x archive.zip also extracts and handles .7z, .rar, and split archives. For .tar.gz and .tar, the native tools are tar -xzf archive.tar.gz and tar -xf archive.tar — see creating a zip on Linux for why tar.gz is the more idiomatic Linux format. The unzip command above is the right one for a plain .zip.

Method 2 — Unzip with a GUI archive manager

On a desktop Linux, the file manager usually extracts zips for you. Double-click a .zip and it opens in the archive manager; right-click and choose Extract Here (or Extract to…) to unpack it. No terminal needed.

  • GNOME (Ubuntu, Fedora Workstation) uses File Roller (Archive Manager) by default.
  • KDE Plasma uses Ark.
  • Both also open .tar.gz, .7z, and .rar when the right backends are installed, and let you browse the archive before extracting.

Method 3 — Unzip in your browser (no install, no upload)

Sometimes you cannot (or do not want to) install a package: a server with no root, a shared or lab machine, a minimal container, or a Chromebook Linux environment. In those cases, unzip in the browser instead. Open ZipTool, drop the .zip onto the page, and the archive is parsed entirely in your tab.

The advantage over the terminal is preview-first: you browse the file tree, search by name, and click any entry to read code, view images, or render a PDF *before* you extract anything. When you are ready for the real files, extract-all writes them out (or downloads a bundle on browsers without the directory-writing API). Nothing is uploaded — the whole thing runs locally. For the broader workflow, see extract a zip online and the online zip viewer.

Which method should you use?

A quick rule of thumb:

  • Use `unzip` for speed, scripting, batch jobs, and any time you are already on the terminal. It is the Linux default.
  • Use a GUI archive manager (File Roller, Ark) on a desktop when you want point-and-click extraction without the terminal.
  • Use the browser tool when you cannot install a package, want to preview the contents before extracting, or want the archive never uploaded to a server.
  • Use `7z x` only if you already have p7zip and need its broader format support (rar, 7z, split archives) in one tool.

Frequently asked questions

How do I unzip a file on Linux?

The standard way is the unzip command: install it if missing (sudo apt install unzip), then unzip archive.zip (or unzip archive.zip -d target/ for a destination). On a desktop, double-click the .zip and use the archive manager (File Roller on GNOME, Ark on KDE). With no install at all, drop the zip on ZipTool to browse, preview, and extract in your browser.

`unzip: command not found` — how do I install it?

Install the unzip package with your package manager: sudo apt install unzip (Debian/Ubuntu), sudo dnf install unzip (Fedora/RHEL), or sudo pacman -S unzip (Arch). Then unzip archive.zip works. If you cannot install a package, use the browser tool instead — it needs no install and uploads nothing.

How do I list the contents of a zip without extracting?

On the terminal: unzip -l archive.zip prints every entry with its size, extracting nothing. To actually preview files (read code, view images, render a PDF) before extracting, drop the zip on ZipTool and browse the tree in-browser.

Can I unzip on Linux without installing anything?

Yes — open ZipTool in a modern browser and drop the .zip onto the page. The archive is parsed entirely in your browser tab: no apt install, no root, no upload. You can browse, search, preview, and extract, then download the real files.

Does the browser tool upload my zip?

No. The archive is parsed entirely in your browser using zip.js; your file contents are never transmitted to a server, stored, or handed to a third party. You can confirm it in DevTools (the Network tab shows no upload) and by disconnecting from the internet after the page loads — browsing, searching, and previewing keep working.