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 thePATHenvironment variable to findgzipand some other utilities (tail,chmod,ln,sleep). so be careful about what yourPATHis 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 ๐ โจ
๐ฆ where this page comes from
- debian bookworm: bzip2 1.0.8-5+b1 ยท BSD-variant
- debian trixie: bzip2 1.0.8-6 ยท BSD-variant
- ubuntu jammy: bzip2 1.0.8-5build1 ยท BSD-variant
- ubuntu jammy: bzip2 1.0.8-5ubuntu0.1 ยท BSD-variant
- ubuntu noble: bzip2 1.0.8-5.1 ยท BSD-variant
- ubuntu noble: bzip2 1.0.8-5.1ubuntu0.1 ยท BSD-variant
- ubuntu questing: bzip2 1.0.8-6build1 ยท BSD-variant
- ubuntu resolute: bzip2 1.0.8-6build2 ยท BSD-variant
- ubuntu resolute: bzip2 1.0.8-6ubuntu0.1 ยท BSD-variant
- ubuntu stonking: bzip2 1.0.8-6build2 ยท BSD-variant
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms