tee
Any output from a command which gets piped into another command is not look at the terminal. Occasionally, the user may need to save the output which is produced in the centre of a pipe. The tee command enables to do this simply.
Syntax
tee file
This command easily copies the data coming in to the standard output, although saving a copy in the specified file.
Let consider the following example
# sort students | tee stud | more
Anita
Anju
Bobby
Hema
Jeevan
Neha
Priya
Rama
Sanjana
(EOF):
This will sort the student file, show it page wise and save it in file stud. Now the sorted file stud could be shown on the terminal by using cat command.