A lightweight Unix-like shell written in C from scratch.
-
Built-in commands:
cdpwdechotouchmkdirdateenvsetenvunsetenvhelpexit
-
Command parsing and tokenization
-
Execution of external programs using
fork()andexecve() -
PATH environment variable resolution
-
Custom environment variable management
-
Output redirection (
>and>>) -
Support for quoted filenames
-
Cross-platform directory creation support (Linux/Windows)
This project was built to gain a deeper understanding of:
- Shell internals
- Process creation and execution
- Environment management
- Command parsing
- Memory management in C
- Linux system programming
make
./my_shellIradri
Inspired from Dev w/Sel