ZCAT(1)
π zcat(1) β User Commands, bestie edition π
okay so this is the manual page for zcat, from the User Commands section. she decompresses stuff. she concatenates stuff. she sends it all to standard output. she's booked and busy β¨
πΈ NAME πΈ
zcat β decompress and concatenate files to standard output. that's it, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
zcat [options] [files]
π DESCRIPTION π
okay so here's the tea π β zcat copies each file argument to standard output in sequence. one after another, in order, no cap.
if any file given is compressed? she decompresses the content and copies that. literally her whole thing.
if a file given doesn't exist, and its name doesn't already end with one of the known extensions, zcat tries the compressed file names corresponding to the formats supported until one is found. she's out here guessing extensions like it's a group chat "who has the aux" moment π
and if a file fails to decompress? she doesn't spiral. she continues copying the rest of the files. resilient queen π
if a file is specified as -, data are read from standard input, decompressed if needed, and sent to standard output. but heads up bestie β data read from standard input must be of the same type; all uncompressed or all in the same compressed format. no mixing. that's a no from her π
if no files are specified, recursive searches examine the current working directory, and nonrecursive searches read standard input. pick a lane, she'll follow π¦
the formats supported are bzip2, gzip, lzip, xz, and zstd. the whole squad β
exit status is 0 if no errors occurred, 1 otherwise. simple as that π
π₯ OPTIONS π₯
-h,--helpβ display this help and exit. the "what does anything do" button π-V,--versionβ output version information and exit. who is she? find out β¨-A,--show-allβ equivalent to-vET. the bundle deal π-b,--number-nonblankβ number nonblank output lines π’-c,--stdoutβ ignored, for gzip compatibility. she's just here, standing in the corner, doing nothing π-d,--decompressβ ignored, for gzip compatibility. same energy, also ignored π-eβ equivalent to-vEπ¦-E,--show-endsβ display'$'at end of each line π―-M,--format=<list>β process only the formats in<list>π-n,--numberβ number all output lines π’-N,--no-rcfileβ don't read runtime configuration file. she's going off-script π€-O,--force-format=<fmt>β force the input format. not a suggestion, a demand π-q,--quietβ suppress all messages. shhh π€«-r,--recursiveβ operate recursively on directories π-R,--dereference-recursiveβ recursively follow symbolic links π-s,--squeeze-blankβ never more than one single blank line. compression but make it blank lines π«§-tβ equivalent to-vTπ-T,--show-tabsβ display TAB characters as'^I'β‘οΈ-v,--show-nonprintingβ use'^'and'M-'notation, except for LF and TAB π--verboseβ verbose mode (show error messages) π’-x,--exclude=<pattern>β exclude files matching a shell pattern π«--bz2=<command>β set compressor and options for bzip2 format π§--gz=<command>β set compressor and options for gzip format πΈ--lz=<command>β set compressor and options for lzip format π--xz=<command>β set compressor and options for xz format β--zst=<command>β set compressor and options for zstd format π
valid formats for options -M and -O are 'bz2', 'gz', 'lz', 'xz', 'zst', and 'un' for uncompressed. memorize that list, it's on the test π
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie β report bugs to zutils-bug@nongnu.org π§
Zutils home page: http://www.nongnu.org/zutils/zutils.html β go say hi π
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2025 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. read that again, no warranty, she said what she said π
π SEE ALSO π
The full documentation for zcat is maintained as a Texinfo manual. If the info and zcat programs are properly installed at your site, the command
info zutils
should give you access to the complete manual. it's giving "the real answers are in the info page" energy π§β¨
and that's the whole page bestie π«Ά zutils 1.15, dated May 2025 β go decompress something iconic π π
π¦ where this page comes from
- alpine 3.24: zutils-doc 1.15-r0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms