Compress files.

Synopsis

gzip [OPTION]... [FILE]...

Description

Compress files using the gzip algorithm. Each file is replaced by a compressed version with a .gz suffix. Runs in the just-bash WASM shell inside SLICC.

Options

-d, --decompress Decompress instead of compress.

-k, --keep Keep (don't delete) input files.

-l, --list List compressed file info.

-c, --stdout Write on standard output, keep original files.

Examples

$ gzip file.txt

Compress file.txt to file.txt.gz.

$ gzip -k file.txt

Compress, keeping the original.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). Implements gzip using the fflate library (browser-native).

See Also

gunzip, tar