TEE(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸ’… TEE(1) β€” the one where your output gets duplicated

okay so bestie, this page comes straight out of the General Commands Manual and it's about tee, which is genuinely one of the most underrated little icons in your toolbox. she takes what you pipe into her, copies it into every FILE you name, and also lets it spill out to standard output at the same time. main character energy, honestly β€” she refuses to choose. 🫢


✨ NAME ✨

tee β€” Copy standard input to each FILE, and also to standard output.

no cap, that's the whole job description and she's thriving. 🌈

🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Copy standard input to each FILE, and also to standard output.

that's it. that's the vibe. you feed her something on stdin, she fans it out to every FILE you listed, and still passes it along to stdout so the rest of your pipeline doesn't get abandoned mid-conversation. literal queen behaviour β€” everyone gets a copy, nobody gets left on read. πŸ’…βœ¨

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” print help. the "what do I even do" button, we've all been there bestie 🫢
  • -a, --append β€” append to the given FILEs, do not overwrite. so nothing you already had gets deleted β€” she adds to the end instead of steamrolling it. use this one, seriously, protect your data πŸ™ˆ
  • -i, --ignore-interrupts β€” ignore interrupt signals. note that this is ignored on non-Unix platforms β€” so on those platforms the flag just kinda sits there being decorative πŸŽ€
  • -p β€” set write error behavior. also ignored on non-Unix platforms. that's the entire description, she's mysterious like that πŸ’€
  • --output-error β€” set write error behavior. the actual flavour of that behaviour is picked from these possible values:
    • warn β€” produce warnings for errors writing to any output
    • warn-nopipe β€” produce warnings for errors that are not pipe errors (ignored on non-unix platforms)
    • exit β€” exit on write errors to any output
    • exit-nopipe β€” exit on write errors to any output that are not pipe errors (equivalent to exit on non-unix platforms)
  • -V, --version β€” print version. the classic "wait, which build am I even on" moment ⭐
  • [file] β€” yep, the file argument, listed right here in the middle of the options like she owns the place. she does. πŸ‘‘

πŸ’– EXTRA πŸ’–

If a FILE is -, it refers to a file named -.

okay so this is the part where you go "wait, isn't - normally stdout?" β€” and I hear you, but read it again bestie: a FILE of - here means an actual literal file whose name is -. do not assume the usual magic dash behaviour, she's not doing that on this page. write it down, put it on the fridge. 🧚

πŸ‘‘ VERSION πŸ‘‘

v(uutils coreutils) 0.12.0


fr fr, the only thing dangerous here is tee without -a β€” that overwrites, and overwriting is how you lose a file you loved. πŸ’€

okay that's the page!! go pipe something into her, she's obsessed with you already πŸ¦‹πŸ“πŸ’œ

signing off with the deets: this was v(uutils coreutils) 0.12.0, dated 2026-09-17 β€” mwah, catch you in the next manpage πŸ’‹πŸŽ€

πŸ“¦ where this page comes from