ahmedwael19 / Simple-Shell

Executing UNIX commands using a simple shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple-Shell

Executing UNIX commands using a simple shell.

This project consists of designing a C program to serve as a shell interface with parent and child processes running concurrently.

The project consists of two main parts: Creating a child process, and Creating a history feature.

Make file

The code can be compiled to produce output and cleaned to remove the output using make

$ make
gcc -pthread shell.c -o shell
$ ./shell
//for cleaning the output
$ make clean
rm -f main

Error handling:

Code is capable of handling the input error cases such as non-existing commands or no commands in history.

How to use

for commands

./shell.o
ls -l
ps 
date

for history

!!
//the most recent command in history
!4
//the forth recent command in history

for a child process

& 

Built With

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Executing UNIX commands using a simple shell.

License:MIT License


Languages

Language:C 100.0%