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, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: