Question: what is difference between pipe( ) and redirection( ) in linux?
Answer: Redirection is used to redirect the stdout/stdin/stderr, e.g. ls > log. ... Pipes are used to give the output of a command as input to another command, e.g. ls | grep file. txt .