The tee command in Linux is mainly used to save the data imported by the pipeline into a file. So what is the actual application of the tee command? The following will give you a detailed introduction to the use of the Linux tee command.
tee
Function Description: Reads standard input data, and outputs it to the contents of the file.
Syntax: tee [-ai][--help][--version][file…]
Supplement: The tee command reads data from a standard input device and puts it The content is output to a standard output device and saved as a file. We can use tee to save the data imported by the pipeline into a file, and even save several files at a time.
Parameter: -a Appends to the existing file instead of overwriting it. If the file name given to the tee command already exists, the preset will overwrite the contents of the file. With this parameter added, the data will be added at the end of the file's content without deleting the original content.
-i Ignore interrupt signals
--help Online help
--version Display version information
Example:
List Copy the contents of the text file slayers.story and copy 3 copies at the same time. The file names are ss-copy1, ss-copy2, ss-copy3:
$ cat slayers.story
On Linux systems, programs are generally run under the system user. Of course, other users can also
ifconfig is a command for Linux to display network devices. It can set the status o
to change the program icon Unity is a desktop environment interface, mainly used for Ubuntu system,
Usually when we start the Linux ISO image, we need to burn to the CD first. This wi
How can Ubuntu users not use the sudo command?
Linux method for creating custom Docker images
What can I do if RedHat Linux 5 cannot use ifconfig?
How to create symbolic links for Linux systems
How to install OpenOffice on Linux system
Solution for Docker container and host time out of sync
Ubuntu 14.04 steps to install Wine
How to use the cut command to intercept file information in Linux
Linux xhost command usage summary
Linux how to use the locate command to find data
Win7 computer error oxc0000409 prompts how to do
Is your computer capable of running Windows Vista?
WIN8 through the third-party software to add the start menu Raiders
Language bar, all aspects of the input method to solve (a)
Five ways to improve virtual server architecture performance
Quickly restore Win8 win+x shortcuts feature in Win8
Windows7 remove redundant tunnel adapter method
Lose weight for win7 operation disk system