BZEXE(1)

๐Ÿ’– BZEXE(1) โœจ General Commands Manual โœจ

๐ŸŽ€ NAME

bzexe - compress executable files in place ๐Ÿซถ

๐Ÿงš SYNOPSIS

bzexe [ name ...  ]

๐ŸŒธ DESCRIPTION

okay so bzexe is literally the coolest trick ๐Ÿ˜ญ it squishes your executables down in place and then they automatically unzip themselves and run when you open them. the catch? it costs you some performance ๐Ÿ’€ but it's giving storage queen energy.

say you run bzexe /bin/cat ๐Ÿ’… it makes two files for you:

-r-xr-xr-x  1 root  bin   9644 Feb 11 11:16 /bin/cat
-r-xr-xr-x  1 bin   bin  24576 Nov 23 13:21 /bin/cat~

/bin/cat~ is the original file, and /bin/cat is the self-uncompressing executable ๐Ÿฆ‹ once you're sure /bin/cat works properly, you can delete /bin/cat~ ๐Ÿ—‘๏ธ no cap, that's the whole glow-up.

this tool is most useful on systems with very small disks ๐Ÿฅบ if your drive is tiny and crying, this is your bestie.

โœจ OPTIONS โœจ

  • -d โ€” the reverse glow-up ๐Ÿ”ฅ this decompresses the executables you give it instead of compressing them.

๐ŸŒˆ SEE ALSO

bzip2(1), znew(1), zmore(1), zcmp(1), zforce(1) ๐Ÿ’œ

โš ๏ธ CAVEATS

โš ๏ธ okay this part is serious bestie ๐Ÿฅน the compressed executable is a shell script, and that may create some security holes ๐Ÿ˜ญ specifically, it relies on the PATH environment variable to find gzip and some other utilities (tail, chmod, ln, sleep). so be careful about what your PATH is pointing at ๐Ÿ™ˆ

๐Ÿž BUGS

ngl this one is a little messy ๐Ÿ’€ bzexe tries its best to keep the original file attributes on the compressed executable, but in some cases you may have to fix them yourself using chmod or chown ๐Ÿซ  not me having to babysit file permissions ๐Ÿ˜ค


๐ŸŽ€ that's the tea on BZEXE(1), bestie ๐Ÿ’– now go squish your binaries and slay the disk space ๐Ÿ’…โœจ