mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 08:58:09 +00:00
Update cheatsheets
This commit is contained in:
30
p7zip
Normal file
30
p7zip
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# p7zip
|
||||
|
||||
> Wrapper of 7-Zip file archiver with high compression ratio.
|
||||
> Internally executes either 7za or 7zr command.
|
||||
> More information: <http://p7zip.sourceforge.net>.
|
||||
|
||||
- Archive a file, replacing it with a 7zipped compressed version:
|
||||
|
||||
`p7zip {{path/to/file}}`
|
||||
|
||||
- Archive a file keeping the input file:
|
||||
|
||||
`p7zip -k {{path/to/file}}`
|
||||
|
||||
- Decompress a file, replacing it with the original uncompressed version:
|
||||
|
||||
`p7zip -d {{compressed.ext}}.7z`
|
||||
|
||||
- Decompress a file keeping the input file:
|
||||
|
||||
`p7zip -d -k {{compressed.ext}}.7z`
|
||||
|
||||
- Skip some checks and force compression or decompression:
|
||||
|
||||
`p7zip -f {{path/to/file}}`
|
||||
Reference in New Issue
Block a user