Z(1)
π Z(1) β the (un)tar & (de)feather icon π
okay so bestie, welcome to z β the General Commands Manual entry that's basically your safe, convenient little front-end for compress(1), uncompress(1), gzip(1), bzip2(1), lzip(1), xz(1), tar(1), zip(1) and unzip(1) β¨. she compresses and uncompresses files and directories and honestly? she ate. π
π¦ SYNOPSIS π¦
z [ -t | -T ] [ -v | -V ] [ -l | -L ] [ -gz | -z | -I | -lz | -xz | -Z |
-zip | -jar ] [ -# ] [ -s suffix ] [ -m mode ] [ -p | -P ] [ -h ] [ -- ]
file ...
like, that's the whole vibe. now let's get into it π
πΈ DESCRIPTION πΈ
Z 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. okay so she's basically the group chat admin for all your compression tools π«Ά. she processes each of her arguments according to the type of the file or directory you hand her:
- 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 new compressed or uncompressed version will be in the same directory as the original, no cap. a compressed file is always uncompressed into a file with the same name sans the feather suffix. and 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. the way she's consistent πβ¨
β¨ OPTIONS β¨
--β Interprets all following arguments as files instead of options. like, "no more flags bestie, these are just files now" periodt.-#β 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. so like,-9is the "go off queen" setting π π₯.-gzβ Usesgzip(1)and a.gzcompression suffix when feathering. Default. the main character setting, honestly π.-hβ Prints a helpful usage message. she's helpful like that π«Ά.-Iβ Usesbzip2(1)and a.bz2compression suffix when feathering.-lβ Lists the file or directory name created resulting from each argument. she's telling you what she made, iconic behavior π.-Lβ Does not report created files or directories. Default. stealth mode, lowkey π.-lzβ Useslzip(1)and a.lzcompression suffix when feathering.-xzβ Usesxz(1)and a.xzcompression suffix when feathering.-mmode β Apply the givenchmod(1)mode argument 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 the mode is-, then no argument is applied. Seechmod(1)for all other allowable formats of this argument. security girlie fr fr ππ .-pβ Preserves modes when untarring by giving thepflag totar(1). Default. preserve the vibe β¨.-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). like, sometimes you gotta not preserve, iykyk π.-ssuffix β Creates tar and feather files using the given suffix style. The default suffix style is.tgz. Note that the suffix style does not dictate the program used for feathering nor the compression suffix. so like, the suffix is just the aesthetic, not the whole plot π.-tβ Only lists the table of contents of the given files. Does not make any changes. window shopping only bestie, no committing π.-Tβ (Un)tars and (de)feathers the given files according to their type. Default. the "do the thing" mode, main character energy π.-vβ Verbose output. For example, reports compression ratios when feathering. she's gossiping about the numbers, we love a transparent queen π£β¨.-Vβ Non-verbose output. Does not report compression ratios. Default.-qis a synonym. quiet luxury, no unnecessary talking π€«.-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: zip does 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. okay so like, zip is cute but she's not the one if you care about links and permissions, fr fr πβ οΈ. atar(1)-based format should be used if this is required.
π§ 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. so like, set your defaults in the env, but the command line always gets the final say, periodt π.GZIPβ This environment variable forgzip(1)is not passed on byzso that gzip's behavior is standard and predictable. she's keeping it consistent, no chaos energy πΈ.ZIPOPT,UNZIPβ These environment variables forzip(1)andunzip(1)are not passed on byzso that their behavior is standard and predictable. same energy, predictable is the vibe π«Ά.
π BUGS π
okay so there's some stuff she doesn't do yet, and we're manifesting:
- 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
zmore useful when the quota or disk is nearly full. like, sometimes the disk is full and she needs a backup room bestie π. - There should be
-kand-Koptions for keeping the original input files or not. not me waiting for these flags π.
π CAVEATS π
Z 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. so like, version check bestie, don't just assume β¨.
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. okay so she's safe like 99.9%, but the 0.1% is on you, no cap β οΈπ.
β VERSION β
2.7.4
π AUTHOR π
Steve Kinzler, steve@kinzler.com, May 89/Jun 93/Aug 99/Dec 00 β the original legend who made this whole vibe happen, we love and appreciate him fr fr π«Άπ
π 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 tea bestie π. z version 2.7.4, the General Commands Manual entry from Steve Kinzler (steve@kinzler.com) dated May 89/Jun 93/Aug 99/Dec 00 β go forth and (un)tar and (de)feather responsibly, mwah ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: z 2.7.4-bp160.1.9 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms