Home  >  Article  >  Operation and Maintenance  >  What is the role of linux pipes?

What is the role of linux pipes?

藏色散人
藏色散人Original
2019-05-21 15:11:4615334browse


What is the role of linux pipes?

What is the function of linux pipes?

Pipeline: The output of one command can be used as the input of another command through a pipe.

Pipeline We can understand the pipe in real life. One end of the pipe puts something in, and the other end takes it out. Here the left and right of "|" are divided into two ends, the left end puts things (write), and the right end takes things out ( read).

"|" is the pipeline command operator, referred to as the pipe operator. Use the pipe character "|" provided by Linux to separate the two commands. The output of the command on the left side of the pipe character will be used as the input of the command on the right side of the pipe character. Using pipes consecutively means that the output of the first command serves as input to the second command, which in turn serves as input to the third command, and so on.

The command is as follows:

ls -lah | more

What is the role of linux pipes?

If you are exposed to C language, you can use C language to make a pipeline, which can connect one program to another program. Together.

Related learning recommendations: linux video tutorial

The above is the detailed content of What is the role of linux pipes?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does Linux mean?Next article:What does Linux mean?

Related articles

See more