Name

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

Synopsis

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

Frequently used options

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

Examples

Standard output redirected to file as well as to terminal:

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

standard output redirected to file with tee

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: