tee [man page] - read from standard input and write to standard output and files


tee [OPTION]... [FILE]... 

Frequently used options

-a, --append
append to the given files, do not overwrite


Standard output redirected to file as well as to terminal:

$ free | tee tee.txt
$ cat tee.txt

standard output redirected to file with tee

Please refer all article related questions to:

You may also be interested in: