mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 04:01:39 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/lz4
Normal file
33
tldr/lz4
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lz4
|
||||
|
||||
> Compress or decompress .lz4 files.
|
||||
> More information: <https://github.com/lz4/lz4>.
|
||||
|
||||
- Compress a file:
|
||||
|
||||
`lz4 {{path/to/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 -dc {{dir.tar.lz4}} | tar -xv`
|
||||
|
||||
- Compress a file using the best compression:
|
||||
|
||||
`lz4 -9 {{path/to/file}}`
|
||||
Reference in New Issue
Block a user