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 outputwarn-nopipeโ diagnose errors writing to any output not a pipeexitโ exit on error writing to any outputexit-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:
- 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. (yes bestie, no warranty, she said what she said ๐)
๐ SEE ALSO ๐
- Full documentation
https://www.gnu.org/software/coreutils/tee - or available locally via:
info '(coreutils) tee invocation'
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
- 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