Skip to main content

ZephShell- Unix shell built in C

·128 words·1 min
Muhammad Israr
Author
Muhammad Israr

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
#

How It Works
#

  1. Reads user input with getline
  2. Parses command and arguments using strtok
  3. Forks a child process with fork()
  4. Child executes the command via execvp()
  5. 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

Links#