LBZEXE(1)
π LBZEXE(1) π
okay bestie, welcome to the lbzexe page, straight outta the General Commands Manual πβ¨ yes it's a real section of the manual, yes we're gonna read it together, hold my hand π«Ά
πΈ NAME πΈ
lbzexe β compress executable files in place π
β¨ SYNOPSIS β¨
lbzexe name ...
like, just hand it some names, plural, as many as you want π
π¦ DESCRIPTION π¦
so here's the tea β β the lbzexe utility lets you compress executables in place and then have them automatically uncompress and execute when you run them. yes, truly, they just wake up and go πβοΈβ¨ the catch? there's a penalty in performance β it's giving "gotta pay the toll to cross this bridge" π
for example, if you execute lbzexe /usr/bin/gdb it will create the following 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 file π₯ you can yeet /usr/bin/gdb~ once you are sure that /usr/bin/gdb works properly ποΈβ¨ (but likeβ¦ sure sure, okay? vibe check it first π)
this utility is most useful on systems with very small disks π₯Ί tiny disk energy, we've all been there, no judgement π
π OPTIONS π
-dβ decompress the given executables instead of compressing them π it's the uno reverse card of this whole operation, slay
π SEE ALSO π
the whole friend group fr fr, go say hi π«Άπ
π CAVEATS π
okay so listen, this part matters, don't skip it π
the compressed executable is a shell script π this may create some security holes β οΈ like, actual holes, not the cute kind.
in particular, the compressed executable relies on the PATH environment variable to find lbzip2 and some standard utilities β specifically basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail π΅οΈβοΈ so if your PATH is messy, things get messy, iykyk
bestie this is a genuine security caveat, not a drill, take it seriously π π
π BUGS π
lbzexe attempts to retain the original file attributes on the compressed executable π― but you may have to fix them manually in some cases, using chmod or chown π§ like, it tries, it's doing its best, but sometimes you gotta step in and be the main character π
that's the whole page, periodt π β¨ and it's all from the LBZEXE(1) page in the General Commands Manual β thanks for reading with me bestie, go compress something responsibly ππ¦π
π¦ where this page comes from
- fedora 43: lbzip2-utils 1.0-28.fc43 Β· GPL-3.0-or-later
- fedora 44: lbzip2-utils 1.0-29.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms