Tee (command)

tee
Developer(s)AT&T Bell Laboratories, Mike Parker, Richard Stallman, David MacKenzie, Microware, Jim Hall, JP Software, Microsoft
Initial releaseJune 1974 (1974-06)
Written inC
Operating systemUnix, Unix-like, Plan 9, Inferno, OS-9, FreeDOS, Windows, ReactOS, IBM i
PlatformCross-platform
TypeCommand
LicenseFreeDOS: GPL-2.0-or-later
ReactOS: GPLv2
Plan 9: MIT License

tee is shell command that copies data from standard input to one or more files in addition to standard output; duplicating the input to each output. The name derives from the tee pipe fitting even though the tee command duplicates the input into each output instead of dividing the input into portions for each output. The command is often used with pipes and filters. Similar behaving commands are provided by many shells although syntax varies.

The command is provided in Unix and Unix-like systems, OS-9, DOS (e.g. 4DOS, FreeDOS), Windows (e.g. 4NT, PowerShell, UnxUtils), ReactOS and IBM i.

The Linux version was written by Mike Parker, Richard Stallman, and David MacKenzie.

The FreeDOS version was developed by Jim Hall and is licensed under the GPL.

Additionally the sponge command offers similar capabilities.