Tinyhshell is a program written in C/C++ that tries to replicate a real shell.
- It processes all shell commands along with three other commands, namely history, history -sbu and exit, which have been explained below.
- The code tries to inculcate Object Oriented Programming, STL and the concept of parent and child procceses into it.
The commands implemented for this project are:
- history : Displays the last five commands along with their executiong times.
- history - sbu : Displays the last five commands in the descending order of their execution times.
- exit : exits the program
To run the program and other functionalities, clone the repository and give the following make commands:
- make tinyshell - Compiles the code (generating object code and linking the necesaary files together).
- make run - runs the ./tinyshell executable file
- make clean - cleans all the .o files in the directory along with the executable as well.
- make tar - Creates an archive of the all the files into a single .tar file called tinyshell.tgvz