What is the difference between redirection and piping?

What is the difference between redirection and piping?
Answer
Redirection is (mostly) for files (you redirect streams to/from files). Piping is for processes: you pipe (redirect)
streams from one process to another. Essentially what you really do is “connect” one standard stream (usually stdout ) of one process to standard stream of another process (usually stdin ) via pipe.
 

Tìm kiếm

Back
Top