With pipe tee commands is used. Tee reads data from input source and and write it to another file.
Syntax of tee command is : tee [OPTION] fileName.
For example:
$ echo “Professor Jayesh” | tee jayesh
In above example, tee command write the ‘Professor Jayesh’ in file ‘jayesh’.
In above example we seen that when we again write in data to the same file jayesh than previous text got overwrite, that means it removes previous text and write new text.