Why cd Can’t Be a Program (Building a Shell in C)



I built my own Unix shell from scratch in C: no AI, no copying from existing shells. Along the way: why cd can’t be a normal program, how fork and exec actually run your commands, how pipes connect programs, and why Ctrl+C killed my whole shell.

Github:

Chapters
0:00 Intro
0:27 What is a shell?
0:46 The 5 challenges & 1. Parsing
0:59 2. fork, exec, wait
2:15 3. Builtins
2:49 4. Pipes
3:57 5. Signals
4:36 Outro

Resources

Credits
Music by Kevin MacLeod (incompetech.com)
“Chill Wave” and “Airport Lounge”

Tux by Larry Ewing (lewing@isc.tamu.edu) and The GIMP

#c #linux #programming

source

14 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy