Answer: It is well known that every command takes input and displays output. Keyboard serves as the standard input device and the screen serves as the standard output device. Redirection is defined as the process of directing data from one output to another or even cases exist where output serves as input data for another process.

There are basically three streams available in which input and output of the Linux environment are distributed.

These are explained as below:

  • Input Redirection: '<' symbol is used for input redirection and is numbered as (0). Thus it is denoted as STDIN(0).
  • Output Redirection: '>' symbol is used for output redirection and is numbered as (1). Thus it is denoted as STDOUT(1).
  • Error Redirection: It is denoted as STDERR(2).

This free site is ad-supported. Learn more