Unix shell is a command-line interpreter designed to read commands typed by a user and execute appropriate programs in response to those commands. The shell is both an interactive command language and a scripting language, and is used by the operating system to control the execution of the system using shell scripts.
$ ./hsh
($) /bin/ls
hsh main.c shell.c
($)
($) exit
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
#include <signal.h>
#include "header.h"
*getline Get line from user
*execve System call - Executing a program
*fork Creating processes
*wait Suspends execution of the calling process
gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
Run the executable in your terminal after compiling
$ ./hsh
simpleshell$:ls
README.md ctrl_c.c header.h.gch simple_shell
a.out exec.c minishell.c splits_string.c
built-in.c header.h shell_test_suite string_directory.c
Julián Mendez | @julianmendezw
Helena Cortés | @helectron