CAT(1)
π CAT(1) β the concatenate girlie π
okay so you found the cat page, welcome bestie, this is the General Commands Manual and it's literally the most iconic little utility in the whole toolbox π
β¨ NAME β¨
cat β concatenate FILE(s), or standard input, to standard output. With no FILE, or when FILE is -, it reads standard input. no cap, that's the whole personality π
πΈ SYNOPSIS πΈ
cat [OPTION]... [FILE]...
π¦ DESCRIPTION π¦
Concatenate FILE(s), or standard input, to standard output. With no FILE, or when FILE is -, read standard input. that's it, that's the job, and she ate π₯
π OPTIONS π
-A,--show-allβ same thing as-vET, all the sneaky characters get exposed β¨-b,--number-nonblankβ number the nonempty output lines only, and heads up bestie, it overrides-nπ-eβ same thing as-vE-E,--show-endsβ slap a$at the end of every line so you can actually see where they end π-n,--numberβ number all the output lines, every single one-s,--squeeze-blankβ suppress repeated empty output lines, we're not doing repetition today π-tβ same thing as-vT-T,--show-tabsβ display TAB characters as^I, so tabs stop gaslighting you-v,--show-nonprintingβ use^andM-notation for the weird ones, except for LF (\n) and TAB (\t) π«Ά-uβ (ignored) yeah she's just standing there, ignored, lowkey iconic for it-h,--helpβ Print help π§-V,--versionβ Print version β
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
Print the contents of a file to stdout:
cat path/to/file
Concatenate several files into an output file:
cat path/to/file1 path/to/file2 ... > path/to/output_file
Append several files to an output file:
cat path/to/file1 path/to/file2 ... >> path/to/output_file
Copy the contents of a file into an output file without buffering:
cat -u /dev/tty12 > /dev/tty13
Write stdin to a file:
cat - > path/to/file
The examples are provided by the tldr-pages project at https://tldr.sh under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. (not me warning you about the WIP-ness, she's still growing okay π)
and that's the page bestie, periodt π this whole thing was served up from the General Commands Manual, dated 2026-09-25 β mwah, go concatenate something cute πΈπ¦β¨
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms