Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Redirection

Redirection is a process of redirecting streams/ data to a file on command line.Redirection uses symbol ‘ > ’ and ‘ >> ‘.

  • Redirection recognize the character written on left side of ‘ > ‘, and transfer it to right side of ‘ > ‘ .
  • Left side of  ‘ > ‘ is for input streams and right side of  ‘ > ‘ is for name of files.

Example :

$ echo Welcome to profjayesh.com > profjayesh
  • In this example, Welcome to profjayesh.com is input stream and profjayesh is a file name where input stream have to be save.
  • In Redirection, this symbol ‘ > ‘ , will overwrite the already present content.

As shown in example below when ‘ Burhanpur ‘ is written it overwrite the ‘Welcome to profjayesh.com’.

  • In Redirection, this symbol ‘ >> ‘, will append the already present content.

As shown in below image when ‘ Burhanpur’ is written it append the ‘Welcome to profjayesh.com’.