/minishell

Recreating bash in C

Primary LanguageC

minishell

This project was made as a collaborative effort between samih713 and Taanviir

Minishell is a simple shell clone designed to teach C programming and the basics of the Linux system. It provides a simplified hands-on learning experience for understanding how the shell interprets user commands, executes them, and communicates with the underlying system. Building a mini shell from scratch helps to understand how the shell interprets user commands, executes them, and interacts with the operating system, covering essential system-level concepts such as processes, signals, and file descriptors.

image


How to Use

Clone the repository using

git clone https://github.com/Taanviir/minishell.git

Navigate to the cloned directory using

cd minishell

Compile the shell using

make

Run the shell using

./minishell

To check for memory leaks use

valgrind --show-leak-kinds=all --leak-check=full --suppressions=vg_rlsuppressions.supp ./minishell

Resources

Github - Sample

Blogpost Guide

Minishell Guide

Shell Program Explained Video