From 634a21291c9b8288acfd607463628a7b4e6a3e97 Mon Sep 17 00:00:00 2001 From: Michal Date: Wed, 15 Apr 2020 17:29:06 +0200 Subject: [PATCH] create 7z.md initial --- pages.pl/common/7z.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages.pl/common/7z.md diff --git a/pages.pl/common/7z.md b/pages.pl/common/7z.md new file mode 100644 index 000000000..1e23fc92f --- /dev/null +++ b/pages.pl/common/7z.md @@ -0,0 +1,36 @@ +# 7z + +> A file archiver with high compression ratio. +> More information: . + +- Archive a file or directory: + +`7z a {{archived.7z}} {{path/to/file_or_directory}}` + +- Encrypt an existing archive (including headers): + +`7z a {{encrypted.7z}} -p{{password}} -mhe=on {{archived.7z}}` + +- Extract an existing 7z file with original directory structure: + +`7z x {{archived.7z}}` + +- Extract an archive with user-defined output path: + +`7z x {{archived.7z}} -o{{path/to/output}}` + +- Extract an archive to stdout: + +`7z x {{archived.7z}} -so` + +- Archive using a specific archive type: + +`7z a -t{{zip|gzip|bzip2|tar}} {{archived.7z}} {{path/to/file_or_directory}}` + +- List available archive types: + +`7z i` + +- List the contents of an archive file: + +`7z l {{archived.7z}}`