1 TEE(1) User Commands TEE(1) 2 3 NAME 4 tee - replicate the standard output 5 6 SYNOPSIS 7 tee [-ail] [file]... 8 9 DESCRIPTION 10 tee copies standard input to standard output, making a copy in zero or 11 more files. tee does not buffer its output by default (but see the -l 12 option). The options determine if the specified files are overwritten or 13 appended to. If a write to a file fails, tee continues to write to other 14 files although it exits with a non-zero exit status. 15 16 ksh93 17 The tee built-in in ksh93(1) is associated with the /bin and /usr/bin 18 paths. It is invoked when tee is executed without a pathname prefix and 19 the pathname search finds a /bin/tee or /usr/bin/tee executable. 20 21 OPTIONS 22 The following options are supported: 23 24 -a, --append Appends the output to the files rather than overwriting 25 them. 26 27 -i, --ignore-interrupts 28 Ignores SIGINT signal. 29 30 -l, --linebuffer 31 Sets the standard output to be line buffered. 32 33 OPERANDS 34 The following operands are supported: 35 36 file A path name of an output file. Processing of at least 13 37 file operands is supported. 38 39 EXIT STATUS 40 0 All files copied successfully. 41 42 >0 An error occurred. 43 44 ENVIRONMENT VARIABLES 45 See environ(5) for descriptions of the following environment variables 46 that affect the execution of tee: LANG, LC_ALL, LC_TYPE, LC_MESSAGES, 47 LC_NUMERIC, and NLSPATH. 48 49 INTERFACE STABILITY 50 The command line interface of tee is Committed. The output of tee is 51 Committed. The ksh93(1) built-in binding to /bin and /usr/bin is 52 Volatile. 53 54 SEE ALSO 55 cat(1), ksh93(1), attributes(5), environ(5), largefile(5), standards(5) 56 57 illumos February 9, 2021 illumos