mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 02:55:38 +02:00
lz4: add page (#2125)
This commit is contained in:
parent
44c201c7a7
commit
7aba31a680
1 changed files with 27 additions and 0 deletions
27
pages/common/lz4.md
Normal file
27
pages/common/lz4.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# lz4
|
||||||
|
|
||||||
|
> Compress or decompress .lz4 files.
|
||||||
|
|
||||||
|
- Compress a file:
|
||||||
|
|
||||||
|
`lz4 {{file}}`
|
||||||
|
|
||||||
|
- Decompress a file:
|
||||||
|
|
||||||
|
`lz4 -d {{file.lz4}}`
|
||||||
|
|
||||||
|
- Decompress a file and write to stdout:
|
||||||
|
|
||||||
|
`lz4 -dc {{file.lz4}}`
|
||||||
|
|
||||||
|
- Package and compress a directory and its contents:
|
||||||
|
|
||||||
|
`tar cvf - {{path/to/dir}} | lz4 - {{dir.tar.lz4}}`
|
||||||
|
|
||||||
|
- Decompress and unpack a directory and its contents:
|
||||||
|
|
||||||
|
`lz4 -d {{dir.tar.lz4}} | tar -xv`
|
||||||
|
|
||||||
|
- Compress a file using the best compression:
|
||||||
|
|
||||||
|
`lz4 -9 {{file}}`
|
Loading…
Add table
Reference in a new issue