HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

brotli — Compress/uncompress files with Brotli compression. More information: <https://manned.org/brotli>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfilesbrotlicliwithuncompresscompress

Problem

How to use the brotli command: Compress/uncompress files with Brotli compression. More information: <https://manned.org/brotli>.

Solution

brotli — Compress/uncompress files with Brotli compression. More information: <https://manned.org/brotli>.

Compress a file, creating a compressed version next to the file:
brotli {{path/to/file}}


Decompress a file, creating an uncompressed version next to the file:
brotli {{[-d|--decompress]}} {{path/to/file.br}}


Compress a file specifying the output filename:
brotli {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}


Decompress a Brotli file specifying the output filename:
brotli {{[-d|--decompress]}} {{path/to/compressed_file.br}} {{[-o|--output]}} {{path/to/output_file}}


Specify the compression quality (1=fastest (worst), 11=slowest (best)):
brotli {{[-q|--quality]}} {{11}} {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}

Code Snippets

Compress a file, creating a compressed version next to the file

brotli {{path/to/file}}

Decompress a file, creating an uncompressed version next to the file

brotli {{[-d|--decompress]}} {{path/to/file.br}}

Compress a file specifying the output filename

brotli {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}

Decompress a Brotli file specifying the output filename

brotli {{[-d|--decompress]}} {{path/to/compressed_file.br}} {{[-o|--output]}} {{path/to/output_file}}

Specify the compression quality (1=fastest (worst), 11=slowest (best))

brotli {{[-q|--quality]}} {{11}} {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}

Context

tldr-pages: common/brotli

Revisions (0)

No revisions yet.