1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:02:09 +02:00
tldr/pages/common/brotli.md
K.B.Dharun Krishna 7aeaf9ccb5
brotli: update page (#10102)
Co-authored-by: pixel <pixel+github@chrissx.de>
2023-04-23 13:27:16 +02:00

721 B

brotli

Compress/uncompress files with Brotli compression. More information: https://github.com/google/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 {{path/to/file.br}}

  • Compress a file specifying the output filename:

brotli {{path/to/file}} -o {{path/to/compressed_output_file.br}}

  • Decompress a Brotli file specifying the output filename:

brotli -d {{path/to/compressed_file.br}} -o {{path/to/output_file}}

  • Specify the compression level [1=Fastest (Worst), 11=Slowest (Best)]:

brotli -q {{11}} {{path/to/file}} -o {{path/to/compressed_output_file.br}}