Linux command
gzexe 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Compress
gzexe [path/to/executable]
Decompress
gzexe -d [path/to/compressed_executable]
说明
gzexe compresses executable files while keeping them executable. It creates a self-extracting shell script that decompresses the original binary to a temporary location, executes it, and cleans up afterward. The original file is backed up with a ~ suffix appended to its name. The resulting "executable" is actually a shell script containing the compressed binary data. This is useful for saving disk space on systems with limited storage, particularly for infrequently used large binaries. The tradeoff is increased startup time due to decompression.
参数
- -d
- Decompress the executable (convert shell script back to binary)
FAQ
What is the gzexe command used for?
gzexe compresses executable files while keeping them executable. It creates a self-extracting shell script that decompresses the original binary to a temporary location, executes it, and cleans up afterward. The original file is backed up with a ~ suffix appended to its name. The resulting "executable" is actually a shell script containing the compressed binary data. This is useful for saving disk space on systems with limited storage, particularly for infrequently used large binaries. The tradeoff is increased startup time due to decompression.
How do I run a basic gzexe example?
Run `gzexe [path/to/executable]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d do in gzexe?
Decompress the executable (convert shell script back to binary)