tldr/pages/common/7za.md
Marco Bonelli f79f6011e0 Refactor: add missing or_directory where needed.
This commit adds the missing `_or_directory` to any example which is
specifying an action affecting a file or a directory, but uses the
token `{{path/to/file}}` instead of `{{path/to/file_or_directory}}`.
2019-02-08 19:43:24 +00:00

560 B

7za

A file archiver with high compression ratio. A standalone version of 7z with support for fewer archive types. Homepage: https://www.7-zip.org/.

  • Archive a file or directory:

7za a {{archived.7z}} {{path/to/file_or_directory}}

  • Extract an existing 7z file with original directory structure:

7za x {{archived}}

  • Archive using a specific archive type:

7za a -t{{zip|gzip|bzip2|tar}} {{archived}} {{path/to/file_or_directory}}

  • List available archive types:

7za i

  • List the contents of an archive file:

7za l {{archived}}