Intro#
After studying Operating systems course and learning about system calls and low level stuff i got interested in How shell actually works in linx so i start building it in C.
Resources i used#
- Write a Shell in C — Stephen Brennan
- Book: The Linux Programming Interface by Michael Kerrisk
How It Works#
- Reads user input with
getline - Parses command and arguments using
strtok - Forks a child process with
fork() - Child executes the command via
execvp() - Parent waits for child to finish with `wait()
Feaures#
For it deos most of the basic work i am planning to add more features like pipes , redirection, and many other cool features.
Tech Stack#
- Language: C
- Platform: Linux
- Tools: GCC, GDB, Make
