← All commands
Topic hub File Management
Windows Linux File Management Expanded guide Archives & Compression

Windows 7z x equivalent in Linux

Extracts 7z, ZIP, RAR and many other archive formats while preserving directory paths.

Windows 7z x
→
Linux equivalents
Debian/Ubuntu same command
7z x archive.7z
Fedora same command
7z x archive.7z
Arch same command
7z x archive.7z

Overview

What this command does

On Windows, "7z x" is used to extract a 7-Zip archive. On Linux, the closest practical mapping shown here is "7z x archive.7z". Extracts 7z, ZIP, RAR and many other archive formats while preserving directory paths. This reference is grouped under File Management → Archives & Compression.

Migration tip: Use <code>7z l</code> to list contents first. The <code>x</code> action preserves folder structure, while <code>e</code> extracts everything into one directory.

Windows → Linux context

What changes when you use this on Linux?

Same name, different environment

The basic command name 7z is familiar on both platforms, but Linux path rules, quoting, permissions and available options can still change the result.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Practical tasks

Common use cases

Extract a 7-Zip archive

Extracts 7z, ZIP, RAR and many other archive formats while preserving directory paths.

7z x archive.7z

Extract with directory structure

7z x archive.7z -ooutput

Extract into output/

7z l archive.7z

List archive contents

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

7z x archive.7z
7z x archive.7z -ooutput
7z l archive.7z

Walkthrough

Examples with explanations

7z x archive.7z # extract an archive
7z x archive.7z -ooutput # extract into output/
7z l archive.7z # preview archive contents

Reference

Common options and variations

Command or optionUse
7z x archive.7zExtract with directory structure
7z x archive.7z -ooutputExtract into output/
7z l archive.7zList archive contents

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "7z x archive.7z" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command 7z x archive.7z Same command on this distribution.
Fedora same command 7z x archive.7z Same command on this distribution.
Arch same command 7z x archive.7z Same command on this distribution.

Keep learning

Related File Management commands