mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 18:41:39 +00:00
19 lines
574 B
Plaintext
19 lines
574 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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.1>.
|
|
|
|
- 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}}`
|