A lightweight, custom-built shell written in C++.
Supports basic command execution, background jobs (&), and signal handling (Ctrl+C, Ctrl+Z).
🚀 Built from scratch to understand OS internals and terminal process control.
- ✅ Run external commands (e.g.
ls,pwd,sleep 10) - ✅ Built-in
cdcommand - ✅ Background process execution (
sleep 5 &) - ✅
Ctrl+Cto kill foreground processes - ✅
Ctrl+Zto suspend foreground processes - ✅ Suspended jobs are tracked in memory (
std::map) - 🔜 Upcoming:
jobs,fg,bg, I/O redirection, piping
- Linux/macOS (UNIX-like terminal)
g++installedmake
make./myshmysh/
├── src/
│ └── main.cpp # Shell logic
├── Makefile # Build script
├── README.md # Project info
MIT License — feel free to use or contribute!
Let me know if you'd like:
- A project logo or banner
- A GitHub Actions workflow (CI build/test)
- A
.gifdemo of the shell in action - GitHub tags (
system-programming,cpp-shell, etc.) - A simple
LICENSEfile to go with MIT license
I'll generate them for you!