Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Shell

A small Unix shell written in C from scratch, built to understand how Unix shells work internally.

Features

  • Execute external commands through $PATH
  • Command arguments
  • Built-in commands:
    • cd
    • pwd
    • exit
  • Environment variable expansion:
    • $HOME
    • $USER
    • $PATH
  • Output redirection:
    • >
  • Supports commands such as:
    • ls
    • cat
    • echo

Project Structure

Mini-Shell/
├── Makefile
├── README.md
├── include/
│   └── shell.h
└── src/
    ├── main.c
    ├── parser.c
    ├── builtins.c
    ├── utils.c
    └── redirections.c

Built With

  • C
  • GCC
  • Linux / WSL
  • Makefile
  • Unix system calls

Built from scratch as a learning project to understand processes, fork(), execve(), file descriptors, environment variables, and shell behavior.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages