Skip to content

A basic implementation of a shell in C++, to understand how does shell & terminals work In-a-Nutshell 😏

Notifications You must be signed in to change notification settings

MANURAJ7/In-a-Nutshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

This code provides a basic implementation of a shell in C++, demonstrating how a shell interacts with the terminal to handle basic functions such as user input in raw mode, command execution, pipe management, redirection, and maintaining command history.

Prerequisites : To try out this code, it must be run in a Unix-based environment. Windows does not natively support commands like "fork", so you may use WSL (Windows Subsystem for Linux) for this purpose.

Execution : First, navigate to the directory containing the code.

Then compile and run the shell program:

g++ main.cpp -o shell ./shell

I will be uploading a doc for explaining this implementation soon, till then you can reffer from the comments of the code.

Happy Learning !!

About

A basic implementation of a shell in C++, to understand how does shell & terminals work In-a-Nutshell 😏

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages