本文共 665 字,大约阅读时间需要 2 分钟。
gzexe
压缩可执行文件,在执行程序的时候可以自动实现解压。此命令的适用范围:RedHat、RHEL、Ubuntu、CentOS、SUSE、openSUSE、Fedora。
1、语法
gzexe file
2、选项列表
选项 | 说明 |
--help | 帮助信息 |
--version | 显示命令版本信息 |
-d | 解压 |
3、实例
1)压缩ls指令
[root@localhost weijie]# gzexe /bin/ls // 压缩 ls 指令,原来的指令文件变为 ls~
/bin/ls: 56.0%
[root@localhost weijie]# ls -l /bin/ls* // 压缩后的命令占用更少的磁盘,而且还可以执行
-rwxr-xr-x 1 root root 53198 9 月 19 17:55 /bin/ls
-rwxr-xr-x 1 root root 118932 11 月 22 2013 /bin/ls~
|
2)解压ls指令
[root@localhost weijie]# gzexe -d /bin/ls // 解压
[root@localhost weijie]# ls -l /bin/ls* // 解压之后,原来的压缩包变为 ls~
-rwxr-xr-x 1 root root 118932 9 月 19 17:58 /bin/ls
-rwxr-xr-x 1 root root 53198 9 月 19 17:55 /bin/ls~
|
转载于:https://blog.51cto.com/9888479/2330740