

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 6
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Learn Linux
incomplete
2: What Is a Terminal?
incomplete
3: What Is a Shell?
incomplete
4: Command Line vs. GUI
incomplete
5: Variables
incomplete
6: History
incomplete
7: Navigate History
incomplete
This lesson's interactive features are locked, please to keep using them
Once we get to using your local machine:
The point is that you're probably using Bash or Zsh, and for the purposes of this course, they're basically the same. Our in-browser shell is an in-memory Bash shell, at least, as close to Bash as we can get in a browser.
Both Bash and Zsh are shells, and they also happen to be powerful programming languages. They have variables, functions, loops, and more. That said, only crazy people write large programs in shell languages... shells are optimized for running other programs and writing small scripts, not for writing large applications.
name="Lane"
Notice there are no spaces between the variable name, assignment operator = and value "Lane".
Starting a line with the $ symbol is a convention to show it's a shell prompt, and it should not be typed. The actual command is echo $name.
$ echo $name
Lane
Unlike in Python, where you can just use a variable's name, in your shell you need to prefix the variable name with a $ to use it, else it would just print name instead of the value.
$ echo Hello $name
Hello Lane
It's really just that easy.
For the rest of this course, you'll be a forensic developer hired by the fictional "WorldBanc" to investigate a security breach. Like most mega-corporations, they don't know what they're doing, but they're happy to overpay you so they can say a "third-party expert" reviewed their systems.
...Anyhow, you'll be using a shell to traverse files, manipulate text, run programs, and investigate suspicious activity.
bankname to "WorldBanc"founded to "1969"ceo to "Jeff Gates"WorldBanc was founded in 1969 by Jeff Gates
Submit the shell checks.