OS Manuals

/usr/bin/tee

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running tee --help (exit 0). permalink

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

Usage: tee [OPTION]... [FILE]...

Arguments:
  [file]...


Options:
  -h, --help
          Print help

  -a, --append
          append to the given FILEs, do not overwrite

  -i, --ignore-interrupts
          ignore interrupt signals (ignored on non-Unix platforms)

  -p
          set write error behavior (ignored on non-Unix platforms)

      --output-error[=<output-error>]
          set write error behavior

          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

If a FILE is -, it refers to a file named - .
Options (6)
OptionDescriptionSource
-h, --helpPrint helphelp + man
-a, --appendappend to the given FILEs, do not overwritehelp + man
-i, --ignore-interruptsignore interrupt signals (ignored on non-Unix platforms)help + man
-pset write error behavior (ignored on non-Unix platforms)help + man
--output-error output-errorset write error behaviorhelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.