Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Standard input and output, redirection, pipe?

Dikenal juga sebagai: standard input/output · redirection · pipe

Definition 14.7 High School Computer Science · Bab 14 — Operating Systems and the Command Line

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.

A pipeline: each red arrow is a pipe from one program’s standard output to the next one’s standard input. The six programs run at the same time, each working on the lines as they arrive.
A pipeline: each red arrow is a pipe from one program’s standard output to the next one’s standard input. The six programs run at the same time, each working on the lines as they arrive.
Baca dalam konteks →