As far as I know piping command A
to command B
will execute A
and give it's output to B
as input. While some commands are endless, like yes
, and therefore execution time for these commands is until we break them. How is piping work for them?
example :
yes | sudo dnf install pkg