gzip
Compress/uncompress files with gzip compression (LZ77). More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
Install
- All systems
-
curl cmd.cat/gzip.sh
- Debian
-
apt-get install gzip
- Ubuntu
-
apt-get install gzip
- Alpine
-
apk add gzip
- Arch Linux
-
pacman -S gzip
- Kali Linux
-
apt-get install gzip
- CentOS
-
yum install gzip
- Fedora
-
dnf install gzip
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install gzip
- OS X
-
brew install gzip
- Raspbian
-
apt-get install gzip
- Dockerfile
- dockerfile.run/gzip
- Docker
-
docker run cmd.cat/gzip gzip
powered by Commando
Compress/uncompress files with gzip compression (LZ77). More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
-
Compress a file, replacing it with a gzipped compressed version:
gzip file.ext
-
Decompress a file, replacing it with the original uncompressed version:
gzip -d file.ext.gz
-
Compress a file, keeping the original file:
gzip --keep file.ext
-
Compress a file specifying the output filename:
gzip -c file.ext > compressed_file.ext.gz
-
Decompress a gzipped file specifying the output filename:
gzip -c -d file.ext.gz > uncompressed_file.ext
-
Specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6:
gzip -9 -c file.ext > compressed_file.ext.gz
© tl;dr; authors and contributors