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.
For example : $ echo Welcome to profjayesh.com > profjayeshHere, 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 below image 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’.