Let's build a super simple shell in C

Опубликовано: 13 Май 2026
на канале: Oceano
26,673
723

CODE (refined a little for github, made nicer)
https://github.com/suspectedoceano/im...

Writing Your Own Shell:

https://www.cs.purdue.edu/homes/grr/S... - Chapter 5: Writing Your Own Shell (PDF guide).
https://github.com/kamalmarhubi/shell... - A step-by-step guide to building a shell in C.
https://indradhanush.github.io/blog/w... - Blog series: Writing a UNIX shell in C.
https://github.com/tokenrove/build-yo... - A GitHub project for building your own shell.
https://danishpraka.sh/posts/write-a-... - Tutorial: Writing a shell in C.
https://www.gnu.org/software/libc/man... - The GNU C Library: Implementing a Shell.
https://aosabook.org/en/v1/bash.html - A deep dive into Bash's architecture.

Big Picture (Minishell):

https://whimsical.com/minishell-archi... - Visual architecture for building a shell.
  / minishell-building-a-mini-bash-a-42-project   - Blog: How to build a mini-bash shell.

Cool Tools:

https://explainshell.com/ - Tool to match command-line arguments to their help text.

MIT Shell Resources:

   • Shell Code Explained   - MIT Playlist: Shell code explained.

typedef struct 🔗s_links🔗
{
🇮🇹🍕🍝My Italian channel -    / @onaeco_ita  
👨🏻‍🏫 FREE Udemy course for total beginners, pre_knowledge before C (Overflow, 2’s complement, BASH, VIM…) - https://www.udemy.com/course/oceano_0...
📑 Notion community page (FREE coding sources) - https://suspectedoceano.notion.site/O...
🧾 Medium (code articles) -   / jalal92  
📲 Telegram group - https://t.me/suspectedoceanO
💻 GitHub - https://github.com/suspectedoceano
🛸 Discord -   / discord  
🐦 Twitter -   / suspectedoceano  
☕️ ChannelSupport - https://www.buymeacoffee.com/suspecte... (if you read this, you are already supporting, TY!)
} 🔗t_links🔗

Timeline
00:00:00 Intro
00:05:40 REPL, reading a line from stdin
00:19:30 REPL, strtok to get tokens
00:30:08 REPL, builtin
00:40:35 fork, execvp, wait