πŸŽ“ A1Learner
πŸ”
0 of 50 lessons completed

Shell Introduction

A shell is a program that takes typed commands and runs them. It is the way you talk to the computer with words.

Say hello

echo prints words on the screen.

echo Hello

Two shells

Bash and zsh are two shells.

echo Bash
echo Zsh

Example

echo Hello
echo Bash
echo Zsh

Key points

  • Shell: a program that runs commands you type.
  • Command: one instruction you type for the shell.
  • Use echo to print words on the screen.
  • Bash and zsh are the two shells in this course.

In this example, the shell runs three echo commands in order. The first line prints Hello. The next two lines print the names of the two shells in this course.

Note

This course uses bash first, and it calls out zsh differences.

Try it Yourself

Edit the code, then press Run.

Running is simulated

Exercise

What is a shell?