In this workshop we will discuss about redirecting input/output commands to and from files, connecting multiple commands together into powerful pipelines, shell expansions and quotes, command history, etc.
|Time:||Wednesday at 6 PM – 7:30 PM|
Participation is anonymous (you don’t need to register or reveal your identity, unless you want to).
Commands and programs in Linux usually produce some output. This output is of two types:
- The program’s results, that is the data that the program is designed to produce
- Status and error messages, which tell how the program is getting along.
Programs usually output the results to the standard output (or stdout) and the status messages to the standard error (stderr). By default, both stdout and stderr are linked to the screen (computer display).
In addition, many programs take input from a facility called standard input (stdin), which is by default attached to the keyboard.
I/O redirection allows us to change where output goes and where input comes from. Normally, output goes to the screen and input comes from the keyboard, but with I/O redirection we can change that.
We can also chain several commands together in a pipeline, where the output of a command is sent as the input of another. This is a powerful feature that allows us to perform complex operations on data by combining simple utilities.