Input Output Pipes and Redirection

Input, Output and pipes:

Standard output-Terminal screen is default

Standard error -Terminal screen is default

Standard input = Keyboard is default

Redirectional operators:

Command > file1 (writes the standard output from command to file1)

Command >> file1 (Appends the output from command to file1)

Command 2>file2 (Writes the errors from command to file2

Command 2>>file2 (Appends the errors from command to file2)

$ find /etc -name passwd

$ find /etc/ -name passwd >>search2 >>error

(After using this command, the output will record in search file and

Error messages will records in error file)