Linux Commands Helper
💬 Your AI-powered Linux assistant
7z Command - 7-Zip File Archiver
The 7z command is a file archiver with a high compression ratio. It is used to create, extract, and manage .7z
and other archive formats on Linux systems.
Syntax
7z [command] [options] [archive] [files...]
Examples
7z a archive.7z file1 file2
Add files to a new 7z archive.
7z x archive.7z
Extract all files from a 7z archive.
7z l archive.7z
List the contents of a 7z archive.
Notes
- Supports many archive formats, including 7z, zip, tar, gzip, bzip2, and more.
- May require installation:
sudo apt install p7zip-full
on Debian/Ubuntu. - Use
7za
for a standalone version supporting fewer formats.