LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

7za

standalone file archiver from the 7-Zip family

TLDR

Create archive
$ 7za a [archive.7z] [files...]
copy
Extract archive
$ 7za x [archive.7z]
copy
List archive contents
$ 7za l [archive.7z]
copy
Create zip archive
$ 7za a -tzip [archive.zip] [files]
copy
Extract with password
$ 7za x -p[password] [archive.7z]
copy

SYNOPSIS

7za command [switches] archive [files...]

DESCRIPTION

7za is the standalone version of the 7-Zip command-line tool. Unlike 7z which may use external plugins, 7za includes all codecs in a single executable.7za supports fewer formats than the full 7z but is more portable as a single binary. It handles 7z, ZIP, GZIP, BZIP2, XZ, TAR, and CAB formats.The command syntax is identical to 7z. For scripts that only need common formats, 7za is often preferred for its simplicity and reliability.

PARAMETERS

-odir

Output directory
-ppassword
Set password
-mx=n
Compression level (0-9)
-ttype
Archive type (7z, zip, gzip, bzip2, xz, tar)
-r
Recurse subdirectories
-y
Assume yes to queries
-si
Read from stdin
-so
Write to stdout
-mhe=on
Encrypt archive headers (7z format)

COMMANDS

a

Add files to archive
x
Extract with full paths
e
Extract (flat, no paths)
l
List archive contents
t
Test archive integrity
d
Delete from archive
u
Update archive

INSTALL

sudo apt install 7zip
copy
sudo dnf install 7zip
copy
sudo pacman -S 7zip
copy
sudo zypper install 7zip
copy
brew install 7zip
copy

CAVEATS

7za supports fewer formats than 7z. For RAR, CAB, or ISO extraction, use the full 7z command.The "a" in 7za stands for "alone" (standalone), not "alpha" or "advanced".Performance is identical to 7z for supported formats.

SEE ALSO

7z(1), 7zr(1), tar(1), gzip(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid