tee [ -ai ] [--append] [--ignore-interrupts] [--help] [--version] [ filename… ]
tee copies the standard input to the standard output and one or more files, as in ls|tee outfile. Output goes to screen and to outfile.
date | tee nowfile
|
Explanation
The output of the date command is displayed on the screen and also stored in nowfile.
18.219.63.95