Open In App

gzexe command in Linux with examples

Last Updated : 20 May, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

gzexe command is used to compress executable files and also used to automatically uncompress and execute the files. This utility is very useful on systems having small disk space. This command creates two files. Suppose you run it for a file named grs then it will create two files like:

  1. grs~ : Original file itself.
  2. grs : Compressed executable.

Option:

  • -d : Decompress the given executables instead of compressing them.

Example:

  • Compressing an executable file(observe the size of both files).

  • Decompressing an compressed executable file(observe the size of both files).

Note: Compressed executable is a shell script in itself which can create security holes. It is dependent on PATH environment variable for its functions.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads