You may have observed that some commands output data onto your terminal when you run them. So far, this has printed you many flags, but like many things, the technology goes much deeper. The mechanisms behind the handling of input and output on the commandline contribute to the commandline's power.
This module will teach you about input and output redirection. Simply put, every process in Linux has three initial, standard channels of communication:
ls
.Because these three channels are used so frequently in Linux, they are known by shorter names: stdin
, stdout
, stderr
.
This module will teach you how to redirect, chain, block, and otherwise mess with these channels.
Good luck!