tldr/pages/common/7za.md

20 lines
533 B
Markdown
Raw Normal View History

2016-01-05 01:02:34 +00:00
# 7za
> A file archiver with high compression ratio.
2016-01-05 01:02:34 +00:00
- Compress directory or file:
2016-01-05 01:02:34 +00:00
`7za a {{compressed.7z}} {{directory_or_file_to_compress}}`
- Decompress an existing 7z file with original directory structure:
2016-01-05 01:02:34 +00:00
`7za x {{compressed.7z}}`
- Compress to zip format:
2016-01-05 01:02:34 +00:00
`7za a -tzip {{compressed.zip}} {{directory_or_file_to_compress}}`
- Create multipart 7zip file; `part_size` specifies part size in Bytes, Kilobytes, Megabytes or Gigabytes:
2016-01-05 01:02:34 +00:00
`7za -v{{part_size}}{{[b|k|m|g]}} {{compressed.7z}} {{directory_or_file_to_compress}}`