Skip to content

dejaramillo/simple_shell

Repository files navigation

SIMPLE_SHELL 🚀

simple_shell is a program that runs similarly to the GNU-linux shell, usingsimilar execution commands.

Flow-chart

You can see full scale image in this link

Starting with 🔧

The SHELL command is executed which will start the execution process of the program with the call to write that prints the shell prompt, then enters an infinite loop in which the user is asked for the input data.

Depending on the type of command entered into the system, different types of validations will be made, which generate an execution response according to the syntax.

To exit the program you can either execute the exit command or use the key combination "Ctrl" + "D".

File Contents 📋

The repository contains the following files:

File Description
AUTHORS Contains info about authors of the project
man_simple_shell Man page for the created shell
shell.h Header file containing all function prototypes and struct declarations
simple_shell.c The main function
functions_data.c _strdup function, divide_string function, space_delete function,_concat function and free_mem_string function
functions_data1.c getpath function, ubicationpath function, _getenv function, compare function and free-_mem function
functions_data2.c exe function and env function

Installation 🔧

1-Clone repository

https://github.com/dejaramillo/simple_shell.git

2-Execute or compilation

you can run the SHELL file, which is the system executable, or you can recompile the C files and name it as you like

Authors ✒

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages