Linux Learning -- tee command -- general Linux technology-Linux technology and application information. For more information, see the following section. Function Description: Read standard input data and output the data into a file.
Syntax: tee [-ai] [-- help] [-- version] [file…]
Note: The tee command reads data from the standard input device, outputs the data to the standard output device, and saves it as a file. We can use tee to save the data imported from the pipeline into a file, or even several files at a time.
Parameter:-a is appended to an existing file, rather than overwriting it. If the file name given the tee instruction already exists, the content of the file will be overwritten by default. After this parameter is added, the data is added at the end of the file content, and the original content is not deleted.
-I ignore the interrupt signal
-- Help Online help
-- Version: displays version information.
Example:
List the contents of the text file slayers. story and copy three copies of the file named ss-copy1, ss-copy2, and ss-copy3:
$ Cat slayers. story | tee ss-copy1 ss-copy2 ss-copy3
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service