By default tee command overwrites the file. You can instruct tee to append to the file using the –a option as shown below.
tee
–a
$ ls | tee –a file