LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zforce

Add missing .gz extension to gzip files

TLDR

Add .gz extension
$ zforce [path/to/file1 path/to/file2 ...]
copy

SYNOPSIS

zforce [FILE...]

DESCRIPTION

zforce adds a .gz extension to files compressed with gzip that are missing the extension. It examines files and renames only those that are valid gzip files.Files that already have the .gz extension or are not gzip-compressed are ignored.

INSTALL

sudo apt install gzip
copy
sudo dnf install gzip
copy
sudo pacman -S gzip
copy
sudo apk add gzip
copy
sudo zypper install gzip
copy
brew install gzip
copy
nix profile install nixpkgs#gzip
copy

CAVEATS

Only processes gzip files without .gz extension. Does not compress files, only renames them.

SEE ALSO

gzip(1), gunzip(1), zcat(1)

Copied to clipboard
Kai