What are Shell Redirections? of Standard Streams

Card Puncher Data Processing

What are Shell Redirections? of Standard Streams

About

Before a command is executed, its input (standard input stream) and output (standard output stream and standard error stream) may be redirected using redirection operators by the command line interpreter.

Redirection may also be used to open and close file handles/file descriptors for the current shell execution environment.

Redirection allows commands' file handles/file descriptors to be:

  • duplicated,
  • opened,
  • closed,
  • made to refer to different files,

and can change the files the command:

  • reads from
  • and writes to.

Operator

Generally, a redirection goes:

  • to a file
  • or to a program (chained), the standard output from an application becomes the standard input stream from an other).

See:





Discover More
Io Input Stream
I/O - Stream

A stream concept at the io level is a file (generally a text file) A stream is an abstract concept for files and io devices which can be read or written, or sometimes both. I/O devices can be interpreted...
Card Puncher Data Processing
IO - Standard Input (stdin)

Standard Input is a standard stream that reads: from the keyboard or from a redirection such as the pipe. How to print the file name of the terminal connected to standard input. On Linux, you use...
Card Puncher Data Processing
Shell Data Processing - Cat command (short for concatenate)

cat is a core utility that generates a stream of data from one or more files (ie file descriptor) It therefore can: concatenate files. read any file (or file descriptor ie tcp connection, ...) ...



Share this page:
Follow us:
Task Runner