Lessons

An introduction to writing Bash

Bash · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.

10 lessons · The Host · Lesson 1 free

Pass all ten lessons for the certificate. Sample · Claim

  1. Lesson 1 · On the house

    echo and the prompt

    Print text in the shell.

  2. Lesson 2

    Variables

    name=value and $name.

  3. Lesson 3

    Arguments $1 and $@

    Positional parameters.

  4. Lesson 4

    exit status $?

    Success is zero.

  5. Lesson 5

    if and test

    Branches in Bash.

  6. Lesson 6

    for loops

    Iterate words.

  7. Lesson 7

    pipes |

    Connect stdout to stdin.

  8. Lesson 8

    redirects

    > >> 2> and <.

  9. Lesson 9

    chmod +x and scripts

    Runnable files.

  10. Lesson 10

    A small script

    Args, if, and echo.

Sample certificate

Certificate of completion

Sign in to claim your certificate of completion.

Certificate

Finish all ten lessons, then sign in

Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.

All lessons

An introduction to writing Bash — The Gold Standard