Skip to content

Tanmay-21/MY-SHELL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

MY-SHELL

This is a self developed basic version of Bourne shell ("Bash") with multiple similar functionalities as well as many new ones.

How To Run

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

Tech Stack Used

All the functionalities are programmed in C language with the help of libraries such as "sys/wait.h", "sys/types.h", "signal.h" ... etc.

Important Logic Used

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.

Shell Demo

All these functionalities work smooth and bug free.

Interesting Additions

Some interesting additions made to this personalised shell include...

  • For loop functionality with reference variables similar to Bash.

Shell Demo

  • Terminal shortcut commands to search direct in google or stackoverflow. Used URI encoding to convert search keywords to URL.

Shell Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages