2016-01-05 02:02:34 +01:00
|
|
|
# 7za
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> A file archiver with high compression ratio.
|
2016-02-22 22:48:56 +01:00
|
|
|
> A standalone version of `7z` with support for fewer archive types.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://www.7-zip.org/>.
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2019-02-08 01:31:19 +01:00
|
|
|
- Archive a file or directory:
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2019-02-08 01:31:19 +01:00
|
|
|
`7za a {{archived.7z}} {{path/to/file_or_directory}}`
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2016-02-23 01:51:52 +01:00
|
|
|
- Extract an existing 7z file with original directory structure:
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2016-08-18 11:50:36 +02:00
|
|
|
`7za x {{archived}}`
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2016-02-23 01:51:52 +01:00
|
|
|
- Archive using a specific archive type:
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2019-02-08 01:31:19 +01:00
|
|
|
`7za a -t{{zip|gzip|bzip2|tar}} {{archived}} {{path/to/file_or_directory}}`
|
2016-02-23 02:00:13 +01:00
|
|
|
|
|
|
|
- List available archive types:
|
|
|
|
|
|
|
|
`7za i`
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2016-02-23 01:51:52 +01:00
|
|
|
- List the contents of an archive file:
|
2016-01-05 02:02:34 +01:00
|
|
|
|
2016-08-18 11:50:36 +02:00
|
|
|
`7za l {{archived}}`
|