Visual guide
Bash Forge
A tour of Bash Forge: the map of nine worlds, the editor with a real Ubuntu terminal and the report you get back when each script is validated.
- 9
- worlds of Yggdrasil
- 90
- lessons
- 6
- Boss Fights
- 24.04
- real Ubuntu in Docker
2 screens · 7 parts explained
The map of worlds
The curriculum is a journey through Yggdrasil: each world groups a block of Bash and unlocks once the previous one is done.
- IMidgardecho, paths, first script
- IIVanaheimvariables and quoting
- IIIAlfheimconditionals
- IVJotunheimloops
- VNidavellirfunctions
- IXAsgardfinal projects
Forge rank
Daily streak
Nine worlds
From Midgard (first contact) to Asgard (rotating backups, resource monitor). Greyed-out ones are still locked.
Forge ranks
XP from lessons, challenges and Boss Fights takes you from Apprentice to Master Forger.
Daily streak
Practising a little every day keeps the streak alive; it is designed to build a habit.
A lesson: theory, editor and terminal
You write the script in the editor and run it on a real Ubuntu 24.04 inside an isolated sandbox. Nothing is simulated.
Alfheim · 3/12
Write check.sh: it takes a path and prints “exists” or “missing”. Use [[ -f ]] and return code 1 if the argument is missing.
check.shbash
1#!/usr/bin/env bash 2set -euo pipefail 3 4[[ $# -eq 1 ]] || { echo "uso: $0 ruta" >&2; exit 1; } 5if [[ -f "$1" ]]; then 6 echo "existe" 7else 8 echo "no existe" 9fi
forja@ubuntu:~$
bash check.sh /etc/hostname
existe
bash check.sh
uso: check.sh ruta
Validation report
- Existing file → “existe”OK
- Missing file → “no existe”OK
- No arguments → exit 1OK
- ShellCheckno warnings+40 XP
Brief and theory
Each lesson explains one concept and asks for a small script that uses it.
Editor
You write the full script. Good practice (set -euo pipefail, quoting) is taught from the start.
Real terminal
Runs on an isolated Ubuntu 24.04 in Docker. You can test by hand before validating.
Black-box validation
Your script runs against generated test cases; the report says which case fails and why, not just “wrong”.
How it is used
Enter Midgard
First contact: echo, paths and your first script.
Write and test
Use the editor and real terminal until the script does what is asked.
Validate
The teaching report tells you what to fix.
Fight the boss
At the end of each block, a timed Boss Fight.
Key concepts
- shebang
- The first line (#!) that says which interpreter runs the script.
- set -euo pipefail
- Makes the script stop on errors, unset variables or pipeline failures.
- ShellCheck
- A static analyser that catches typical Bash mistakes.
- Exit code
- The number a program returns: 0 is success, anything else is an error.
Want to use it for real?
This guide explains each part of the interface. The full, always up-to-date tool lives on its official site and repository.