2. The Shell

Published

Monday, September 4, 2023

This week …

A shell is how we talk to the operating system; it is the thing that executes programs of all kinds for us when we tell it to; and it is how we see where we are in the file system and act on those files. In a plain-text world we will spend quite a bit of time talking to the shell via a command-line interface. This week we see the elements of how to do that, and what it buys us. We will also see how the shell implements its own version of the sort of thing you have already seen when using R, namely, many single-purpose commands (more or less equivalent to R’s functions) that can be chained or pipelined together into sequences that can do quite complex tasks one piece at a time.

Readings

  • For more information about the shell, see Daniel J Barrett Efficient Linux at the Command Line (Sebastopol, CA: O’Reilly Media, 2022).

Video

  • Five minutes from Jenny Bryan on how to name things:

Examples

This week’s examples and demos.

Slides

View all slides in new window