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 ^ and M- 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