Does anybody know where the
tee command-line utility got it's name, I can't seem to find anything.
tee (pronounced like the letter T) takes its name from the T-splitter used in plumbing, and which allows the flow of liquid to go to two directions at once. This is appropriate since
tee allows redirecting the output to stdout and to a file at the same time.
Example usage of
tee: The output of
ls -lis redirected to
teewhich copies them to the file
file.txtand to the pager