7z beheert 7-Zip-archieven — uitstekende compressie, ondersteunt ook zip, tar, gz, rar en meer.
7z a archief.7z map/ # Aanmaken
7z x archief.7z # Uitpakken
7z l archief.7z # Inhoud tonen
| Commando | Beschrijving |
|---|---|
a | Toevoegen / aanmaken |
x | Uitpakken met mapstructuur |
e | Uitpakken zonder mapstructuur |
l | Inhoud tonen |
t | Integriteit testen |
d | Bestand uit archief verwijderen |
u | Bijwerken |
| Optie | Betekenis |
|---|---|
-mx=9 | Maximale compressie |
-p | Wachtwoord instellen |
-v100m | Splitsen in delen van 100 MB |
-r | Recursief |
-o/pad | Uitpakmap opgeven |
Met wachtwoord:
7z a -p beveiligd.7z geheimen/
Uitpakken naar specifieke map:
7z x archief.7z -o/tmp/inhoud
Gesplitst archief:
7z a -v100m groot.7z bestand.iso
# Maakt: groot.7z.001, groot.7z.002, ...
7z x groot.7z.001
ZIP aanmaken:
7z a -tzip archief.zip map/
7z is beschikbaar als p7zip op de meeste distributies: sudo apt install p7zip-full.