This is a basic implementation of a shell in C, designed to demonstrate fundamental concepts of operating systems and system programming.
- Supports basic shell commands such as
env',ls, andexit`. - Executes external programs.
- Handles signal interrupts (Ctrl+D).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository:
git clone https://github.com/yourusername/simple-shell.git
- Compile the code:
gcc -Wall -Werror -Wextra -pedantic *.c -o shell
- Run the shell:
./shell
Once the shell is running, you can enter commands just like you would in a regular shell. The shell will parse and execute them accordingly.
Here are some example commands you can try:
ls: Lists the files in the current directory.env: provides you the environment.cat filename: Displays the contents offilename.gcc filename.c -o output: Compilesfilename.cand generates an executable namedoutput.
If you'd like to contribute to this project, please follow these steps:
- Fork the project on GitHub.
- Create a new branch with a descriptive name.
- Make your changes and commit them with clear messages.
- Push your changes to your branch.
- Submit a pull request.
-Abdelhamid Eslam --> (abdelhamideslam900@gmail.com) -Habiba Rajab --> (habibaragab324@gmail.com)