diff --git a/pages/linux/gzexe.md b/pages/linux/gzexe.md new file mode 100644 index 000000000..25dc92e9b --- /dev/null +++ b/pages/linux/gzexe.md @@ -0,0 +1,13 @@ +# 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: . + +- Compress an executable file in-place: + +`gzexe {{path/to/executable}}` + +- Decompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary): + +`gzexe -d {{path/to/compressed_executable}}`