Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.43 KB

File metadata and controls

38 lines (31 loc) · 1.43 KB

Unix-Type-Shell


The bash developed is a Unix type shell developed in C language. It performs all the tasks that can be done by a normal shell.


Instructions

To use this shell run the Makefile, which genereates the executable shell.

make

followed by

./shell

to enter into this shell. Once in the shell, you can run all the commands that you ran run on a bash. Apart from that this shell also supports a host of custom user commands to interact with the shell. The user commands are :

  • HISTN : view the last N commands executed using this shell.
  • !HISTN : execute the Nth command executed on this shell.
  • pid : get the process id of this shell.
  • pid all : get the process ids of all the processes spawned from this shell.
  • pid current : get the process ids of all the processes spawned from this shell and currently active.
  • HELP : get the instructions for this shell.
  • STOP : exit from this shell.

This shell also supports I/O redirection via piping. Some sample screen shots :


License

This project is distributed under MIT license. Any feedback, suggestions are higly appreciated.