tail head cat sleep
QR code linking to this page

Manual Pages  — TEE


tee – duplicate standard input



tee [-ai] [file ...]


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

The following options are available:
  Append the output to the files rather than overwriting them.
  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.


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


The tee utility is expected to be IEEE Std 1003.2 ("POSIX.2") compatible.

TEE (1) November 13, 2007

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC