How to Redirect Output to a File or Process?
The output of a process can be either redirected to a file or to another process i.e., the output of a command will not appear on the screen but will be saved in a file or it can act as an input of another command. The redirection operators like >, >>, &>, 2> etc are …