Skip to content

Liams-theCreator/simple_shell

Repository files navigation

0x16. C - Simple Shell

A UNIX command line interpreter that mimics the behavior of /bin/sh with a custom prompt, #marvel$.

App Screenshot

Introduction

The Simple Shell project is a command line interpreter written in C that reproduces the behavior of /bin/sh. It includes features such as handling command lines with arguments, managing the PATH, implementing built-in commands like exit and env, and using a custom prompt, #marvel$.

Compilation

To compile the Simple Shell, use the following command:

gcc -Wall -Werror -Wextra -pedantic -std=gnu89

Usage

Once the Simple Shell is compiled, you can run it by typing the following command:

./simple_shell

This will start the shell and display the custom prompt, #marvel$. You can then enter commands at the prompt, just as you would with /bin/sh.

Examples

#marvel$ ls
Betty
#marvel$ echo "Hello World"
Hello World
#marvel$ pwd
/home/alx
#marvel$ exit

Authors

Liams-theCreator

Aadel Aferyad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages