7z
ArchivesFundamentalsReference only7-Zip: handles 7z, zip, rar and more
Name: 7z = 7-Zip
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
7z is the command-line 7-Zip (on Linux from the p7zip or 7zip package). It creates highly compressed .7z archives and extracts zip, rar, tar, iso and many more.
Syntax
7z COMMAND [OPTION]... ARCHIVE [FILE]...Common options
| a | Add to an archive |
| x | Extract with full paths |
| e | Extract everything here, without the directories |
| l | List contents |
| t | Test the archive |
| -o | Extract into a directory, with no space: -o/tmp/out |
| -p | A password (right after -p, or leave it out to be asked) |