TEE(1)

๐Ÿ’– tee(1) โ€” User Commands ๐Ÿ’–

okay bestie, pull up a chair, because we're talking about tee, from the GNU coreutils squad, and she is literally the group-chat relay of the Unix world ๐Ÿซถ


โœจ NAME โœจ

tee โ€” read from standard input and write to standard output and files. it's giving "why not both" ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

tee [OPTION]... [FILE]...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so here's the whole vibe: tee takes what you feed it on standard input, copies it to each FILE you list, and also drops it on standard output. every output gets the same tea, no cap โ˜•โœจ

she's named after the plumbing T-joint btw, because she splits one stream into many. iykyk.

the options, bestie ๐Ÿ‘‘

  • -a, --append โ€” append to the given FILEs instead of overwriting them. your old content stays, new stuff just gets added to the end ๐ŸŒฑ
  • -i, --ignore-interrupts โ€” ignore interrupt signals. she's unbothered. unbothered. flawless. ๐Ÿ˜Œ
  • -p โ€” operate in a more appropriate MODE with pipes ๐Ÿช„
  • --output-error[=MODE] โ€” set the behavior when a write error happens. the MODE tea is all the way down below ๐Ÿ‘‡
  • --help โ€” display this help and exit ๐Ÿ†˜
  • --version โ€” output version information and exit ๐Ÿท๏ธ

๐ŸŒˆ MODE ๐ŸŒˆ

okay so MODE is what decides how she acts when writes to the outputs go wrong. the options are:

  • warn โ€” diagnose errors writing to any output
  • warn-nopipe โ€” diagnose errors writing to any output not a pipe
  • exit โ€” exit on error writing to any output
  • exit-nopipe โ€” exit on error writing to any output not a pipe

the default MODE for the -p option is 'warn-nopipe'. and with "nopipe" MODEs, she exits immediately if all outputs become broken pipes.

and if you never specify --output-error at all? the default operation is to exit immediately on error writing to a pipe, and diagnose errors writing to non pipe outputs. noted. periodt. ๐Ÿ’€

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by Mike Parker, Richard M. Stallman, and David MacKenzie. legends fr fr ๐Ÿซก


๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? tell the 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. (yes bestie, no warranty, she said what she said ๐Ÿ™ˆ)


๐Ÿ’œ SEE ALSO ๐Ÿ’œ


and that's the whole page, angel ๐Ÿ’– this was GNU coreutils 9.12, dated September 2026 โ€” now go pipe something and slay โœจ๐Ÿฆ‹๐Ÿ’…

๐Ÿ“ฆ where this page comes from