CAT(1)

CAT(1) โ€” like, the Unix User Commands girlies' manual ๐Ÿ’…

okay bestie, sit down, hydrate, because we're about to talk about cat โ€” the one command everybody thinks they know and, honestly, most people do NOT know. it's giving "main character energy" of coreutils, fr fr. this page lives in the User Commands section of the manual, and by the end of it you're gonna be obsessed. no cap. โœจ


โœจ NAME โœจ

cat โ€” concatenate files and print on the standard output

yeah. that's it. that's the whole job. and yet she ate. ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

cat [OPTION]... [FILE]...

๐ŸŒธ DESCRIPTION ๐ŸŒธ

Concatenate FILE(s) to standard output. that's the vibe: you feed her files, she spits their contents out the other side. chain reaction, but make it text. ๐Ÿฆ‹

With no FILE, or when FILE is -, read standard input. so like, if you're feeling shy and don't wanna name names, cat will just read whatever you pipe into her. she's not nosy, she's supportive. ๐Ÿ˜ญ๐Ÿซถ


๐Ÿ’– OPTIONS ๐Ÿ’–

okay this is the part where people go "wait there are OPTIONS?" โ€” yes bestie, there absolutely are, and some of them are lowkey iconic. buckle up. ๐Ÿ‘‘

  • -A, --show-all โ€” equivalent to -vET. the everything bagel of flags, she shows it ALL.
  • -b, --number-nonblank โ€” number nonempty output lines, and heads up: this overrides -n. she's not asking, she's telling.
  • -e โ€” equivalent to -vE. tiny flag, big power.
  • -E, --show-ends โ€” display $ or ^M$ at end of each line. yes she's showing you where the lines END. line boundaries are important, periodt.
  • -n, --number โ€” number all output lines. every single one. no favorites. ๐Ÿ”ข
  • -s, --squeeze-blank โ€” suppress repeated empty output lines. she is SQUEEZING the blankness out. so satisfying honestly.
  • -t โ€” equivalent to -vT.
  • -T, --show-tabs โ€” display TAB characters as ^I. tabs, exposed. no hiding in the group chat. ๐Ÿ™ˆ
  • -u โ€” (ignored). literally does nothing. she's just standing there. ๐Ÿ’€
  • -v, --show-nonprinting โ€” use ^ and M- notation, except for LFD and TAB. so the weird invisible characters get names and pronouns now.
  • --help โ€” display this help and exit. your girl is helpful like that.
  • --version โ€” output version information and exit. she'll tell you who she is. confidence. ๐Ÿ’…

๐ŸŒˆ EXAMPLES ๐ŸŒˆ

the receipts, bestie. copy these exactly, they're iconic:

cat f - g  Output f's contents, then standard input, then g's contents.
cat        Copy standard input to standard output.

look at that first one โ€” f, then - (which means standard input, remember? we talked about this), then g. she's chaining them like friendship bracelets. ๐ŸŽ€

and plain cat with nothing? she just copies standard input to standard output. the simplest slay. โœจ


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by Torbjorn Granlund and Richard M. Stallman. absolute legends, we stan. ๐Ÿซถ


๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? don't be shy, tell the coreutils girlies:


Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://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. like, none. zero. she's free and she's yours but she is NOT liable, bestie. ๐Ÿ˜ญ

โญ SEE ALSO โญ

  • tac(1) โ€” yes, cat backwards. she has a whole sister. iykyk. ๐Ÿ”ฅ

Full documentation <https://www.gnu.org/software/coreutils/cat> or available locally via: info '(coreutils) cat invocation'


and that's the whole page, my love. go forth and concatenate. this was GNU coreutils 9.12, dated September 2026 โ€” so you know it's fresh. mwah. ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from