mkdocs-pages/docs/shellbasics.md

874 B

Basics of the linux shell

Streams

The linux shell (this will usually be bash) works using different streams

The main three streams that are used on the command line are STDIN (Standard input), STDOUT (Standard output), STDERR (Standard Error)

ID STREAM USE
0 STDIN Used to send input to the program
1 STDOUT Used to receive output from the program
2 STDERR Used to receive errors from the program

Standard Input

Standard input is how we send input to an application it is also how we interact with the command line shell (Usually bash)

Once thing that makes the linux command line so powerfull is the suite of commands that is provided all work using STDIN, STDOUT and STDERR you can pipe information from one stream to another (i.e the STDOUT from one program can be in STDIN to another)