

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Learn Linux
incomplete
2: What Is a Shell?
incomplete
3: Command Line vs. GUI
incomplete
4: What Is a Terminal?
incomplete
5: Variables
incomplete
6: History
incomplete
7: Navigate History
incomplete
This lesson's interactive features are locked, please to keep using them
The program on the right that reads your commands and runs them is a shell. Shells do a lot of things, but their main job is to interpret the commands you type and then execute them.
Shells are often called "REPLs", which stands for:
The expr command evaluates a simple expression and prints the result. It's a tiny program, but it's a great way to watch the shell "read, eval, and print."
expr 123456 + 7890
Submit the shell checks.
Sometimes people get confused about the difference between the "prompt" and the "output". Let's break it down, here's my latest shell session:
wagslane:~$ echo hello
hello
wagslane:~$
The prompt I was given was: wagslane:~$
It's just telling me that the shell is ready to accept a command.
So I typed the command: echo hello
Once I pressed Enter, the shell read my command, evaluated it, and printed the output: hello
Then, the shell printed a new prompt so I can run a different command: wagslane:~$