---
name: "tee"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/tee"
---

# tee(1)

pipe fitting

## NAME

**tee** – pipe fitting

## SYNOPSIS

**tee** \[**-ai**\] \[*file ...*\]

## DESCRIPTION

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.

## STANDARDS

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