tldr/pages.fr/common/7z.md

37 lines
911 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# 7z
> Un archiveur de fichiers avec un haut taux de compression.
> Plus d'informations : <https://www.7-zip.org/>.
- Compresser un fichier ou un dossier :
`7z a {{archive.7z}} {{chemin/vers/fichier_ou_dossier}}`
- Chiffrer une archive existente (en incluant les en-têtes) :
`7z a {{archive_chiffree.7z}} -p{{motdepasse}} -mhe=on {{archive.7z}}`
- Extraire un fichier 7z existant en conservant l'arborescence des fichiers :
`7z x {{archive.7z}}`
- Extraire une archive vers la destination donnée :
`7z x {{archive.7z}} -o{{chemin/vers/destination}}`
- Extraire une archive vers la sortie standard :
`7z x {{archive.7z}} -so`
- Archiver en utilisant un algorithme de compression particulier :
`7z a -t{{zip|gzip|bzip2|tar}} {{archive.7z}} {{chemin/vers/fichier_ou_dossier}}`
- Lister les types d'archives disponibles :
`7z i`
- Lister le contenu d'une archive :
`7z l {{archive.7z}}`