unlz4 is equivalent to lz4 -d .
lz4cat is equivalent to lz4 -dcfm .
When writing scripts that need to decompress files, it is recommended to always use the name lz4 with appropriate arguments (lz4 -d or lz4 -dc) instead of the names unlz4 and lz4cat\. .
Default behaviors can be modified by opt-in commands, detailed below\. .
then lz4cat foo\.lz4 .
is equivalent to : cat file1 file2 .
-z --compress Compress\. This is the default operation mode when no operation mode option is specified, no other operation mode is implied from the command name (for example, unlz4 implies --decompress), nor from the input file name (for example, a file extension \.lz4 implies --decompress by default)\. -z can also be used to force compression of an already compressed \.lz4 file\. .
-d --decompress --uncompress Decompress\. --decompress is also the default operation when the input filename has an \.lz4 extension\. .
-t --test Test the integrity of compressed \.lz4 files\. The decompressed data is discarded\. No files are created nor removed\. .
-b# Benchmark mode, using # compression level\. .
-# Compression level, with # being any value from 1 to 16\. Higher values trade compression speed for compression ratio\. Values above 16 are considered the same as 16\. Recommended values are 1 for fast compression (default), and 9 for high compression\. Speed/compression trade-off will vary depending on data to compress\. Decompression speed remains fast at all settings\. .
-f --[no-]force This option has several effects: .
If the target file already exists, overwrite it without prompting\. . When used with --decompress and lz4 cannot recognize the type of the source file, copy the source file as is to standard output\. This allows lz4cat --force to be used like cat (1) for files that have not been compressed with lz4\. .-c --stdout --to-stdout Force write to standard output, even if it is the console\. .
-m --multiple Multiple input files\. Compressed file names will be appended a \.lz4 suffix\. This mode also reduces notification level\. lz4 -m has a behavior equivalent to gzip -k (it preserves source files by default)\. .
-r operate recursively on directories\. This mode also sets -m (multiple input files)\. .
-B# Block size [4-7](default : 7) .
-B4= 64KB ; -B5= 256KB ; -B6= 1MB ; -B7= 4MB .
-BD Block Dependency (improves compression ratio on small blocks) .
--[no-]frame-crc Select frame checksum (default:enabled) .
--[no-]content-size Header includes original size (default:not present) .
Note : this option can only be activated when the original size can be determined, hence for a file\. It won\'t work with unknown source size, such as stdin or pipe\. .
--[no-]sparse Sparse mode support (default:enabled on file, disabled on stdout) .
-l Use Legacy format (typically for Linux Kernel compression) .
Note : -l is not compatible with -m (--multiple) nor -r .
-v --verbose Verbose mode .
-q --quiet Suppress warnings and real-time statistics; specify twice to suppress errors too .
-h -H --help Display help/long help and exit .
-V --version Display Version number and exit .
-k --keep Preserve source files (default behavior) .
--rm Delete source files on successful compression or decompression .
-b# Benchmark file(s), using # compression level .
-e# Benchmark multiple compression levels, from b# to e# (included) .
-i# Minimum evaluation in seconds [1-9] (default : 3) .
-r Operate recursively on directories .