Skip to content

aryaman0098/Unix-Type-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A unix type shell developed in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors