Let’s Make a Shell!



Ever wondered how a Linux shell works, under the hood? In this live stream I’ll program a simple one in C. We’ll look at tokenizing the input string, using fork() and exec() to spawn a new process, and output redirection.

Editor: vi (vim)
Terminal: Ghostty
Terminal Font: Maple Mono
Compiler: clang

source

20 Comments

  1. it would be interesting to implement the internal shell commands like cd. and if you build it statically (-s) would you be able to use it as a init process with qemu? i have not had a chance to test this

  2. 39:00 no quoting or redirection and it's still 2 hrs long? he's like one strtok loop away from being done with all that what am I…? huh…?

    EDIT: I just realized that he got to that point 40 min in. i think i forgot how long it takes to write this maybe just a little tiny bit…? 😅

  3. Hello, would you recommend the ANSI version of the "The C programming language" K&R book for someone that has programming experience but wants to go lower level? Or is it to updated?
    Is it still recommended for classroom usage?

  4. I wish I had this source of video material back in the day, just a delight to watch! As a self learner, for me AI is a learning tool nothing more, nothing less. It saves me hours of research and context filtering when I need specific information about any subject. I input a question, it delivers a straightforward answer, then I request elaboration considering a specific aspect of the question, it delivers elaboration.
    Being artifitial cognition NP-Complete, it doesn't reason or create from nothing, just helps me saving effort.

  5. It's a shame that the universities are not cracking down more on the AI stuff. They are hurting their reputations and the quality of their graduating students but they don't care because their money is greener if they're still at the university rather than being kicked out or something.

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