Course · 02
Bash Scripting
Write bash scripts on a Linux machine that runs in your browser. Start with commands in a file, then quote safely, make decisions, loop, write functions, make scripts safe, and turn logs into answers. Every lab is graded by running your script. Nothing to install.
- 7
- chapters
- 42
- lessons & labs
- Chapter 1
- free, no account needed
- After Linux
- builds on Linux Essentials
Who it's for
People who know the shell and are tired of typing the same lines.
- Anyone who finished Linux Essentials and types the same commands every day
- Sysadmins and support engineers who want their checks to run on their own
- Developers who need to read and fix the scripts in a project
What you'll be able to do
Write the scripts a team runs every day, and trust them at 3 AM.
- Write scripts that take arguments, check their input and fail clearly
- Use exit codes, if, case and loops to react to what happens
- Organise scripts into functions and libraries
- Make scripts safe with quoting, set -euo pipefail, trap and ShellCheck
- Turn logs into answers with grep, cut, sort, awk and sed
The path
7 chapters, from your first script to safe scripts that turn logs into answers.
Each lesson is short and ends in a quiz, then a lab on a simulated Ubuntu machine in your browser, graded by running your script. Each chapter ends in a timed challenge. Chapter 1 is free.
01
Your First Scripts
Put commands in a file, give it input, and let it decide
0 lessons · 8 labsFree02
Quotes and Values
Know what bash does to a line before it runs
1 lessons · 5 labs03
Decisions
React to success and failure
1 lessons · 6 labs04
Loops
Repeat work until it is done
0 lessons · 5 labs05
Functions
Name a job once and use it everywhere
0 lessons · 5 labs06
Safe Scripts
Read errors, trace, and stop before damage
1 lessons · 6 labs07
Text in Scripts
Count, sum, edit and report on logs and data files
0 lessons · 4 labs
