*** lz4 v1.11.0 64-bit multithread, by Yann Collet ***
Usage :
lz4 [arg] [input] [output]
input : a filename
with no FILE, or when FILE is - or stdin, read standard input
Arguments :
-1 : fast compression (default)
-12 : slowest compression level
-T# : use # worker threads for compression (default:0==auto)
-d : decompression (default for .lz4 extension)
-f : overwrite output without prompting
-k : preserve source files(s) (default)
--rm : remove source file(s) after successful de/compression
-h/-H : display help/long help and exit
Advanced arguments :
-V : display Version number and exit
-v : verbose mode
-q : suppress warnings; specify twice to suppress errors too
-c : force write to standard output, even if it is the console
-t : test compressed file integrity
-m : multiple input files (implies automatic output filenames)
-r : operate recursively on directories (sets also -m)
-l : compress using Legacy format (Linux kernel compression)
-z : force compression
-D FILE: use FILE as dictionary (compression & decompression)
-B# : cut file into blocks of size # bytes [32+]
or predefined block size [4-7] (default: 7)
(custom sizes : single-threaded compression)
-BI : Block Independence (default)
-BD : Block dependency (improves compression ratio)
-BX : enable block checksum (default:disabled)
--no-frame-crc : disable stream checksum (default:enabled)
--content-size : compressed frame includes original size (default:not present)
--list FILE : lists information about .lz4 files (useful for files compressed with --content-size flag)
--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)
--memory=# : memory budget of multi-threaded compression (default: 4096 MB) ; suffixes K, M, G
--single-thread: compress frames with the main thread alone, not cut into jobs (output can differ from -T1 with -BD)
--[no-]mmap : memory-map files to compress (default:enabled when supported)
note : compression fails if the file is truncated or rewritten meanwhile
--favor-decSpeed: compressed files decompress faster, but are less compressed
--fast[=#]: switch to ultra fast compression level (default: 1)
--best : same as -12
Benchmark arguments :
-b# : benchmark file(s), using # compression level (default : 1)
-e# : test all compression levels from -bX to # (default : 1)
-i# : minimum evaluation time in seconds (default : 3s)
Options (32)
| Option | Description | Source |
|---|---|---|
-1 | : fast compression (default) | help |
-12 | : slowest compression level | help |
-T#, --threads # | : use # worker threads for compression (default:0==auto) | help + man |
-d --decompress | : decompression (default for .lz4 extension) | help + man |
-f | : overwrite output without prompting | help |
-k --keep | Preserve source files (default behavior) | help + man |
--rm | Delete source files on successful compression or decompression. | help + man |
-V --version | : display Version number and exit | help + man |
-v --verbose | : verbose mode | help + man |
-q --quiet | Suppress warnings and real-time statistics; | help + man |
-c --stdout | : force write to standard output, even if it is the console | help + man |
-t --test | Test the integrity of compressed .lz4 files. | help + man |
-m --multiple | : multiple input files (implies automatic output filenames) | help + man |
-r | : operate recursively on directories (sets also -m) | help + man |
-l | Use Legacy format (typically for Linux Kernel compression) Note : -l is not compatible with -m (--multiple) nor -r | help + man |
-z --compress | : force compression | help + man |
-B# | : cut file into blocks of size # bytes [32+] or predefined block size [4-7] (default: 7) (custom sizes : single-threaded compression) | help + man |
-BI | Produce independent blocks (default) | help + man |
-BD | Blocks depend on predecessors (improves compression ratio, more noticeable on small blocks) | help + man |
-BX | Generate block checksums (default:disabled) | help + man |
--memory # | Memory budget of multi-threaded compression, in bytes, with optional suffixes K, M, G (powers of 1024) (default: 4 GB, 1 GB on 32-bit systems). | help + man |
--best | Set highest compression level. | help + man |
-b# | : benchmark file(s), using # compression level (default : 1) | help + man |
-e# | Benchmark multiple compression levels, from b# to e# (included) | help + man |
-i# | Minimum evaluation time in seconds [1-9] (default : 3) | help + man |
--list | List information about .lz4 files. (in the manual page but not in --help) | man |
-# | Compression level, with # being any value from 1 to 12. (in the manual page but not in --help) | man |
--single-thread | Compress frames with the main thread alone, without cutting them into jobs (liblz4's single-threaded mode). (in the manual page but not in --help) | man |
--favor-decSpeed | Generate compressed data optimized for decompression speed. (in the manual page but not in --help) | man |
-D dictionaryName | Compress, decompress or benchmark using dictionary dictionaryName. (in the manual page but not in --help) | man |
--no-crc | Disable both frame and block checksums (in the manual page but not in --help) | man |
-h -H | Display help/long help and exit (in the manual page but not in --help) | man |