A Shell provides you with an interface to the Unix system. It gathers input from you and executes programs based on that input. When a program finishes executing, it displays that program's output.
This is a custom shell developed in C.
Follow these steps to run the shell in your pc.
-
Clone the repository.
-
Change the directory to the directory where this is cloned.
-
Run following commands in your terminal.
gcc yoursh.c linkedlist.c linkedlist.h utilities.h utilities.c linkedListForHistory.c linkedListForHistory.h./a.outThis will open the shell in your terminal.
Note - The commands given in step 2 assumes that you have gcc installed on your system and you are working in an ubuntu operating system.
To know about different builtin command inside terminal,type help and hit enter.
To change the current working directory, type cd directoryName and hit enter. To know about current working directory type pwd and hit enter.
To kill a process with a specific pid,type kill pid and hit enter.
To exit shell, type exit and hit enter.
To know about previous command entered,type history and hit enter.
To run a command in background,so that you can run different commands in parallel,type bg and then the command and hit enter.
print all the background jobs and details about it,type bglist and hit enter.






