1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/lz4.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

511 B

lz4

Compress or decompress .lz4 files. More information: https://github.com/lz4/lz4.

  • 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/directory}} | 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}}