-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path7z
36 lines (19 loc) · 761 Bytes
/
7z
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 7z
> A file archiver with high compression ratio.
> More information: <https://www.7-zip.org/>.
- 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}}