GZEXE(1)

๐Ÿ“ฆ
version 1.15 ยท 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ 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 ๐Ÿซถ๐Ÿ’–