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^andM-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:
- Report bugs to:
<bug-coreutils@gnu.org>. - Report any translation bugs to:
<https://translationproject.org/team/>. - GNU coreutils home page:
<https://www.gnu.org/software/coreutils/> - General help using GNU software:
<https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
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,catbackwards. 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
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms