This is a self developed basic version of Bourne shell ("Bash") with multiple similar functionalities as well as many new ones.
Step 1. Download the source code to system in zip format or clone repo.
Step 2. On linux shell navigate to
"Download-Location"/MY-SHELL-main/MY-SHELL-main/shellprogram
Step 3. compile the shell using command
gcc My-shell.c LinkedList.c Utilities.c -o Shell
Step 4. run using command
./Shell
All the functionalities are programmed in C language with the help of libraries such as "sys/wait.h", "sys/types.h", "signal.h" ... etc.
Basic functionality such as...
- Executing commands and processed by forking the main process.
- Changing directory using "cd" command.
- Exiting the shell.
- Running and monitoring process in background.
- Manual as well as auto killing background process using signals.
All these functionalities work smooth and bug free.
Some interesting additions made to this personalised shell include...
- For loop functionality with reference variables similar to Bash.
- Terminal shortcut commands to search direct in google or stackoverflow. Used URI encoding to convert search keywords to URL.