2016-02-22 21:50:05 +00:00
|
|
|
# 7z
|
|
|
|
|
|
|
|
> A file archiver with high compression ratio.
|
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
- Archive a file or folder:
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
`7z a {{compressed.7z}} {{path/to/file}}`
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
- Extract an existing 7z file with original directory structure:
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
`7z x {{compressed}}`
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
- Archive using a specific archive type:
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
`7z a -t{{7z|zip|gzip|bzip2|tar}} {{compressed}} {{path/to/file}}`
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
- List the contents of an archive file:
|
2016-02-22 21:50:05 +00:00
|
|
|
|
2016-02-23 00:51:52 +00:00
|
|
|
`7z l {{compressed}}`
|