A lightweight shell program implemented in C that supports basic command execution. This project demonstrates fundamental concepts of process management, tokenization, and user interaction in a Linux environment.
- Command execution (e.g.,
ls
,pwd
, etc.). - Input parsing and tokenization.
- Graceful handling of invalid commands.
- Exit command to terminate the shell.
- A C compiler (e.g., GCC).
- A Linux or UNIX-based operating system.
- Clone the repository:
git clone https://github.com/stephenombuya/Mini-Shell cd mini-shell
- Compile the program:
gcc -o mini-shell mini_shell.c
Start the shell by running:
./mini-shell
You will see a prompt mini-shell>
where you can type commands.
mini-shell> ls
mini-shell> pwd
mini-shell> exit
Contributions are welcome! Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of changes"
- Push to the branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.
- Inspired by the need for simple examples in operating systems and C programming.