Shell Fundamentals

The power of linux comes from the shell and its commands. Mastery of the shell requires a fundamental understanding of how inputs, outputs, and errors work when using commands.

What is a Command?

Inputs

You can provide input

  1. From your keyboard --> Standard Input.
  2. From a file --> Redirecting Standard Input

Outputs

The output can be

  1. Printed onto your terminal --> Standard Output
  2. Written to a file --> Redirecting Standard Output

Errors

Errors can be

  1. Printed onto your terminal --> Standard Error
  2. Written to a file --> Redirecting Standard Error

See next --> String Commands Together

References

Linux Pocket Guide

Tags

#linux