Z(1)
π Z(1) β comprez π
okay so bestie, welcome to the manual page for comprez, living in section 1 of the General Commands Manual. She's your safe lil' front-end bestie for tarring, feathering, and all the undoing of same. Let's get into it π¦
β¨ NAME β¨
comprez β safely (un)tar and (de)feather files and directories π
πΈ SYNOPSIS πΈ
comprez [ -t | -T ] [ -v | -V ] [ -l | -L ] [ -gz | -z | -I | -lz | -xz
| -Z | -zip | -jar ] [ -# ] [ -s suffix ] [ -m mode ] [ -p | -P ] [ -h ]
[ -- ] file ...
π DESCRIPTION π
So like, Comprez is a simple, safe and convenient front-end for the compress(1), uncompress(1), gzip(1), bzip2(1), lzip(1), xz(1), tar(1), zip(1) and unzip(1) utilities, for compressing and uncompressing files and directories. It processes each of its arguments according to the type of the file or directory given, and honestly? she's so versatile for it. β¨
Here's the vibe check on what she does with each argument:
- If the argument is a plain file, then the file is compressed, ie, feathered. πͺΆ
- If the argument is a compressed file with a name ending in
.Z,.gz,.z,.bz2,.lz,.xz,.zipor.jar, then the file is uncompressed, ie, defeathered. - If the argument is a directory, then the directory is archived into one tar or zip file which is then compressed, ie, tarred and feathered. π¦
- If the argument is a compressed tar or zip archive with a name ending in
.{tar.,tar,ta,t}{Z,gz,z,bz2,lz,xz}or.{zip,jar}, then the archive is uncompressed and untarred, ie, untarred and defeathered. The full un-doing. iconic.
The new compressed or uncompressed version will be in the same directory as the original. A compressed file is always uncompressed into a file with the same name sans the feather suffix. A compressed tar or zip archive is always unpacked into a subdirectory with the same name as the archive sans the tar and feather suffix β even if the archive did not itself contain such a subdirectory. No cap, she just does that.
π OPTIONS π
--β Interprets all following arguments as files instead of options. Like, "okay we're done with flags now bestie."-#β Where#is a digit from1through9. This option is passed on togzip(1),bzip2(1),lzip(1),xz(1)andzip(1)when feathering with them.--fastmay be used instead of-1and--bestinstead of-9. β-gzβ Usesgzip(1)and a.gzcompression suffix when feathering. Default.-hβ Prints a helpful usage message. She's helpful!! π«Ά-Iβ Usesbzip2(1)and a.bz2compression suffix when feathering.-lβ Lists the file or directory name created resulting from each argument.-Lβ Does not report created files or directories. Default.-lzβ Useslzip(1)and a.lzcompression suffix when feathering.-xzβ Usesxz(1)and a.xzcompression suffix when feathering.-mmodeβ Apply the givenchmod(1)modeargument to any created tar and feather files. Before this argument is applied, the files have the same read and write permissions as the directories from which they were created. For security, the default argument isgo-rwx. If themodeis-, then no argument is applied. Seechmod(1)for all other allowable formats of this argument. π₯-pβ Preserves modes when untarring by giving thepflag totar(1). Default.-Pβ Doesn't preserve modes when untarring by not giving thepflag totar(1). This option may be necessary on systems where ordinary users are allowed to runchown(2). π-ssuffixβ Creates tar and feather files using the givensuffixstyle. The default suffix style is.tgz. Note that the suffix style does not dictate the program used for feathering nor the compression suffix. (sneaky lil' distinction, iykyk)-tβ Only lists the table of contents of the given files. Does not make any changes. peek-only mode π-Tβ (Un)tars and (de)feathers the given files according to their type. Default.-vβ Verbose output. For example, reports compression ratios when feathering. she's telling you everything π¬-Vβ Non-verbose output. Does not report compression ratios. Default.-qis a synonym.-zβ Usesgzip(1)and a.zcompression suffix when feathering.-Zβ Usescompress(1)and a.Zcompression suffix when feathering.-zip,-jarβ Useszip(1)and a.zipor.jarcompression suffix when tarring and/or feathering. The zip format combines tarring and feathering.
β οΈ WARNING:zipdoes not preserve complete Unix filesystem information for the files it archives, such as links, some permissions, etc. Atar(1)-based format should be used if this is required. fr fr, do not ignore this one.
π ENVIRONMENT VARIABLES π
ZOPTSβ This variable may be set to a string of the above options to supersede the default settings. They may still be overridden by options given on the command line.GZIPβ This environment variable forgzip(1)is not passed on bycomprezso that gzip's behavior is standard and predictable. β¨ZIPOPT,UNZIPβ These environment variables forzip(1)andunzip(1)are not passed on byzso that their behavior is standard and predictable.
π BUGS π
okay so these are the known "not yet, bestie" gaps:
- There should be an option to allow the use of another directory for temporary files needed during the (un)tarring and (de)feathering processes. This would make
comprezmore useful when the quota or disk is nearly full. - There should be
-kand-Koptions for keeping the original input files or not.
π CAVEATS π
Comprez is written to work with gzip versions 1.2.3 and 1.2.4, bzip2 versions 0.9.0 and 1.0.0, Unix zip version 2.0.1 and Unix unzip version 5.12. Other versions will probably work safely, too, but should still be checked for compatibility.
Every effort has been made to assure that the use of this program will not lead to the inappropriate deletion or corruption of any files. However, there are never any guarantees, so please use at your own risk. π
β VERSION β
2.7.3
π§ AUTHOR π§
Steve Kinzler, steve@kinzler.com, May 89/Jun 93/Aug 99/Dec 00
π URL π
π SEE ALSO π
compress(1), uncompress(1), gzip(1), bzip2(1), lzip(1), xz(1), tar(1), zip(1), unzip(1)
and that's the whole page bestie!! π this is version 2.7.3 of the Z(1) page in the General Commands Manual, mwah, go compress something safely πβ¨
π¦ where this page comes from
- debian bookworm: comprez 2.7.3-2 Β· GPL-2.0-or-later
- debian trixie: comprez 2.7.3-2 Β· GPL-2.0-or-later
- ubuntu jammy: comprez 2.7.3-2 Β· GPL-2.0-or-later
- ubuntu noble: comprez 2.7.3-2 Β· GPL-2.0-or-later
- ubuntu resolute: comprez 2.7.3-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: comprez 2.7.3-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms