ZCAT(1)

πŸ“¦
version 1.15 Β· 2 versions
, in alpine 3.24

πŸ’… 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 Β© 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