两者之间的管道 (|) 将第一个 tar 的标准输出传入到第二个 tar 的标准输入,并且高效地将文件复制到一个并不存在的存档文件,然后再从其中提取文件。
The pipe between the two (|) feeds the standard output from the first tar into the standard input of the second, effectively copying the files into, and then out of, a non-existent archive file.
更有用的是,您可以将文件复制到标准输出,然后可以使用管道从标准输入中提取这些文件,并将它们从一个地方复制到另一个地方。
Even more usefully, you can copy files into the standard output and, then using pipes, you can extract the files from the standard input and copy the files from one location to another.
在管道符后面,切换到另一个目录,然后从标准输入提取字节流。
After the pipe, change to a different directory and then extract the byte stream again from the standard input.
应用推荐