cover image

Redirect (computing)

Form of interprocess communication / From Wikipedia, the free encyclopedia

Dear Wikiwand AI, let's keep it short by simply answering these key questions:

Can you list the top facts and stats about Redirection (computing)?

Summarize this article for a 10 years old


In computing, redirection is a form of interprocess communication, and is a function common to most command-line interpreters, including the various Unix shells that can redirect standard streams to user-specified locations.

The standard streams for input, output, and error typically refer to a terminal (keyboard+display) when not redirected.

In Unix-like operating systems, programs do redirection with the dup2(2) system call, or its less-flexible but higher-level stdio analogues, freopen(3) and popen(3).