tee(1)

tee1

Pipe fitting

Usage

tee [-ai] [file ...]

Overview

The tee utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.

The options are as follows:

-a

Append the output to the files rather than overwriting them.

-i

Ignore the SIGINT signal.

The following operands are available:

file

A pathname of an output file.

The tee utility takes the default action for all signals, except in the event of the -i option.

Exit status

The tee utility exits 0 on success, and >0 if an error occurs.

Releases

61 releases since OpenBSD 2.1; the text changed 7 times.

  1. 2.1–2.4
  2. 2.5–2.6
  3. 2.7–3.3
  4. 3.4–4.1
  5. 4.2–4.4
  6. 4.5–4.6
  7. 4.7–4.8
  8. 4.9–8.0

Standards

The tee utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.