Each program starts with a standard input, where it reads, and a standard output, where it writes; at a terminal they are the keyboard and the screen. A redirection connects them to a file instead: > f writes the output into f, emptying it first, >> f adds at the end of f, and < f reads the input from f. A pipe, a | b, connects the standard output of a to the standard input of b.
Computer Science · Glossaire
Qu'est-ce que « Standard input and output, redirection, pipe » ?
Aussi appelé : standard input/output · redirection · pipe