Build Your Own Shell
Build a real Unix shell from the ground up: tokenize quoted command lines, parse pipelines and redirections, expand variables and glob patterns, fork/exec child processes, and dispatch built-ins like cd, export, and history. By the end you'll deeply understand how bash, zsh, dash, and every other shell actually drive the Unix process model.
intermediate16 lessons4 chapters16 graded exercisesPython
No sign-up needed for lesson 1 · certificate on completion · sign up to save progress
What you’ll have built
Chapter by chapter. Every step is a graded exercise.
- Tokenizing & Parsing
- Built-ins & Variables
- Execution & Pipelines
- Production Concerns
Starts in Python — solve in the language you choose in the editor, same tests either way.
Curriculum
4 chapters, 16 lessons. Each lesson is a short read, one graded exercise, and a quiz.
- 1Tokenizing a Command LineRead · exercise · quiz
- 2Parsing PipelinesRead · exercise · quiz
- 3Parsing RedirectsRead · exercise · quiz
- 4Here-DocumentsRead · exercise · quiz
Loading reference solution…