SealShell


SealShell is my custom-made real shell that I made using a tutorial.
So, what is a "shell"? Shell is a command that is how a user talks to computer to reveal what they want. For example, ls is to list files in a directory. GNU/Linux or UNIX based OS like Darwin have similar commands while Windows uses different commands that can be used in Powershell.
To make a shell, you need these 3 components: fork() and execvp(). Fork is to clone a parent process and treats it as a child process, and execvp is to wipe out old process and loads new process to the memory.
As you can see, SealShell in the top image runs uname -a the same as how bash was. Note that this is just a minimal shell, and no extra stuff except for exit was provided.
SealShell consists of 86 lines of code and you can try out in this link right here.