Function Description: Reads the standard input data and outputs its contents to a file.
Syntax: Tee [-ai][--help][--version][file ...]
Note: The tee instruction reads data from a standard input device and outputs its contents to a standard output device while saving it as a file.
Parameters
-A or--append attaches to the back of the existing file rather than overwriting it.
The interrupt signal is ignored by the-i-i or--ignore-interrupts.
--help online Help.
--version Displays version information.
[email protected] ~]# who | Tee who.out
Root pts/0 2009-02-17 07:47 (123.123.123.123)
[email protected] ~]# cat Who.out
Root pts/0 2009-02-17 07:47 (123.123.123.123)
[Email protected] ~]# pwd | Tee-a Who.out
/root
[email protected] ~]# cat Who.out
Root pts/0 2009-02-17 07:47 (123.123.123.123)
/root
[Email protected] ~]#
Linux Command Learning Note--tee command