This C Shell can execute programs in the foreground or background (own programs or cd, ls, ...), wait for processes and use one pipe.
This project was built with C
Follow these steps to run the project.
- Clone the repo
git clone https://github.com/janskn/c-shell.git
- Install the build-essential package
This installs a bunch of new packages including gcc, g++ and make
sudo apt install build-essential
Navigate to the path of the shell.c file.
Enter
gcc -o shell shell.c
and afterwards
./shell
Or enter
make run
Once you did this you can simply enter all the commands you want to get executed in the terminal. Stop the program by typing exit.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.