Linux Comm Tee
# Linux tee command
[ Linux Command Manual](#)
The Linux tee command is used to read data from standard input and write it to one or more files.
The tee command reads data from the standard input device, writes its content to the standard output device, and simultaneously saves it to a file.
### Syntax
tee [file...]
**Parameters**:
* -a or --append Append to the existing file instead of overwriting it.
* -i or --ignore-interrupts Ignore interrupt signals.
* --help Online help.
* --version Display version information.
### Example
Use the "tee" command to save user input data to both "file1" and "file2" simultaneously. Enter the following command:
$ tee file1 file2 #Copy content in two files
After executing the above command, the user will be prompted to enter data to be saved to the file, as shown below:
My Linux #Prompt user to input data My Linux #Output data, perform output feedback
At this point, you can open "file1" and "file2" separately to check if their contents are both "My Linux" to determine if the "tee" command executed successfully.
[ Linux Command Manual](#)
YouTip