HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gzexe — Compress executable files while keeping them executable. Back up the original file, appending `~` to

Submitted by: @import:tldr-pages··
0
Viewed 0 times
whilecommandfilesexecutableclikeepinggzexecompress
linux

Problem

How to use the gzexe command: Compress executable files while keeping them executable. Back up the original file, appending ~ to its name and create a shell script that uncompresses and executes the binary inside it. More information: <https://manned.org/gzexe>.

Solution

gzexe — Compress executable files while keeping them executable. Back up the original file, appending ~ to its name and create a shell script that uncompresses and executes the binary inside it. More information: <https://manned.org/gzexe>.

Compress an executable file in-place:
gzexe {{path/to/executable}}


[d]ecompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary):
gzexe -d {{path/to/compressed_executable}}

Code Snippets

Compress an executable file in-place

gzexe {{path/to/executable}}

[d]ecompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary)

gzexe -d {{path/to/compressed_executable}}

Context

tldr-pages: linux/gzexe

Revisions (0)

No revisions yet.