GZEXE(1)
๐ GZEXE(1) ยท General Commands Manual ๐
โจ NAME โจ
okay bestie, the name of this one is gzexe, and it's basically the tool that compresses executable files in place ๐๏ธ๐ ngl the name is so on brand.
๐ SYNOPSIS ๐
gzexe name ...
๐ฆ DESCRIPTION ๐ฆ
okay so the gzexe utility lets you squish executables down in place, and then they automatically uncompress and run whenever you open them ๐ซถ the catch is there's a little performance penalty, but it's giving space-saver energy โจ
for example, if you run gzexe /usr/bin/gdb, it makes two files:
-rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb
-rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~
so /usr/bin/gdb~ is the original file ๐ฆ, and /usr/bin/gdb is the self-uncompressing executable ๐ง once you're 100% sure /usr/bin/gdb works properly, you can delete /usr/bin/gdb~ ๐๏ธ (no cap, that's the big glow-up moment).
this one is most useful on systems with very small disks ๐ฅบ๐
๐ OPTIONS ๐
-dโ decompress the given executables instead of compressing them ๐
๐ธ SEE ALSO ๐ธ
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1) ๐
โ ๏ธ CAVEATS โ ๏ธ
bestie, listen ๐ the compressed executable is a shell script, and that may create some security holes ๐ญ
the compressed executable relies on the PATH environment variable to find gzip and some standard utilities: basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail ๐ so yes, your PATH matters a LOT here ๐ฅ
๐ BUGS ๐
the gzexe command tries its best to keep the original file attributes on the compressed executable ๐ฅน but in some cases you may have to fix them manually using chmod or chown ๐ ๏ธ it's not you, it's the vibes ๐
GZEXE(1) till the very end, bestie ๐โจ manpage energy forever ๐ซถ๐
๐ฆ where this page comes from
- alpine 3.22: gzip-doc 1.14-r2 ยท GPL-3.0-or-later
- alpine 3.23: gzip-doc 1.14-r3 ยท GPL-3.0-or-later
- alpine 3.24: gzip-doc 1.14-r3 ยท GPL-3.0-or-later
- arch rolling: gzip 1.15-1 ยท GPL-3.0-or-later
- centos-stream 10: gzip 1.13-4.el10 ยท GPL-3.0-or-later AND GFDL-1.3-only
- centos-stream 9: gzip 1.12-2.el9 ยท GPLv3+ and GFDL
- debian bookworm: gzip 1.12-1 ยท GPL-3.0-or-later
- debian trixie: gzip 1.13-1+deb13u1 ยท GPL-3.0-or-later
- fedora 43: gzip 1.13-4.fc43 ยท GPL-3.0-or-later AND GFDL-1.3-only
- fedora 44: gzip 1.14-2.fc44 ยท GPL-3.0-or-later AND GFDL-1.3-only
- nixos 26.05: gzip 1.14
- nixos 26.05: gzip-static 1.14
- nixpkgs unstable: gzip 1.15
- opensuse-leap 16.0: gzip 1.13-160000.4.1 ยท GPL-3.0-or-later
- opensuse-leap 16.0: gzip 1.13-160000.4.1 ยท GPL-3.0-or-later
- opensuse-leap 16.0: gzip 1.13-160000.4.1 ยท GPL-3.0-or-later
- opensuse-leap 16.0: gzip 1.13-160000.4.1 ยท GPL-3.0-or-later
- ubuntu noble: gzip 1.12-1ubuntu3 ยท GPL-3.0-or-later
- ubuntu noble: gzip 1.12-1ubuntu3.2 ยท GPL-3.0-or-later
- ubuntu questing: gzip 1.13-1ubuntu4 ยท GPL-3.0-or-later
- ubuntu resolute: gzip 1.14-1~exp2ubuntu1 ยท GPL-3.0-or-later
- ubuntu resolute: gzip 1.14-1~exp2ubuntu1.1 ยท GPL-3.0-or-later
- ubuntu stonking: gzip 1.14-1~exp2ubuntu3 ยท GPL-3.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms