upx 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

upx 命令安装:


-bash/zsh: upx command not found

#Alpine
apk add upx

#Arch Linux
pacman -S upx

#Fedora
dnf install upx

#OS X
brew install upx

#Docker
docker run cmd.cat/upx upx

upx 命令补充说明:


upx 是一种便携式、可扩展的高性能可执行打包程序,适用于几种不同的可执行格式。upx 具有出色的压缩率,并提供【非常】的快速解压缩。对于可执行的大多数格式,可执行文件都不会因原位解压缩而造成内存开销或其他缺点。

upx 命令语法:


upx [ command ] [ options ] filename...

upx 命令选项:


-q: be quiet, suppress warnings

-q -q (or -qq): be very quiet, suppress errors

-q -q -q (or -qqq): produce no output at all

--help: prints the help

--version: print the version of UPX

--exact: when compressing, require to be able to get a byte-identical file after decompression with option -d. [ NOTE: this is work in progress and is not supported for all formats yet. If you do care, as a workaround you can compress and then decompress your program a first time - any further compress-decompress steps should then yield byte-identical results as compared to the first decompressed version.]

[ ...to be written... - type 'upx --help' for now ]

upx 命令环境变量:


环境变量 UPX 可以为 UPX 保留一组默认选项。这些选项首先被解释,并且可以由显式命令行参数覆 盖。例如:

for DOS/Windows:   set UPX=-9 --compress-icons#0
for sh/ksh/zsh:    UPX="-9 --compress-icons=0"; export UPX
for csh/tcsh:      setenv UPX "-9 --compress-icons=0"

upx 命令参数:


目标文件

upx 命令实例:


upx 压缩可执行文件:

upx file

upx 解压缩可执行文件:

upx -d file

upx 详细帮助:

upx --help

upx 命令扩展阅读:




upx 命令评论