gzexe command in Linux with examples

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.


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


  • 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.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.