Install libreadline-dev by running sudo apt-get install libreadline-dev
Type "make main" (without quotes) on the terminal,followed by ./a.out.If you wish to remove all the object files type "make remove" (without quotes)
-
headers.h : This file contains all the common headers required across various files.
-
main.c : This contains the main shell loop.
-
prompt.c : This contains two functions i.e initialize_prompt() to initialize the prompt and prompt() which is called at every iteration of loop in main.c
-
prompt.h : This contains function prototype for the file prompt.c
-
parse.c : This contains a function parse_commands() which breaks a string into tokens based on a character c.
-
parse.h : This contains function prototype for the file parse.c
-
handle.c : This containsa function handle_commands() which is called after parsing of the input is done.This inturn calls appropriate functions according to the command given.
-
handle.h : This contains function prototype for the file handle.c
-
echo.c : This contains function needed to implement echo command.
-
echo.h : This contains function prototype for the file echo.c
-
ls.c : This contains function needed to implement ls command.
-
ls.h : This contains function prototype for the file ls.c
-
pwd.c : This contains function needed to implement pwd command.
-
pwd.h : This contains function prototype for the file pwd.c
-
pinfo.c : This contains function needed to implement pinfo command.
-
pinfo.h : This contains function prototype for the file pinfo.c
-
system_programs.c : This contains function needed to implement all the other system commands.
-
sys.h : This contains function prototype for the file system_programs.c
-
cd.c : This contains function needed to implement cd command.
-
cd.h : This contains function prototype for the file cd.c
-
Makefile: This contains instruction for compilation.
-
bg.c : This contains function needed to implement bg command.
-
bg.h : This contains function prototype for file bg.c.
-
environment_var.c : This contains function needed to implement setenv and unsetenv commands.
-
envr.h : This contains function prototype for file environment_var.c.
-
foreground.c : This contains function to put a job in the foreground.
-
foreground.h : This contains function prototype for file foreground.c.
-
kills.c : This contains function needed to implement kjob and overkill commands.
-
kills.h : This contains function prototype for file kills.c.
-
linked_list.c : This contains functions required to add_process,remove_process,print details of the background processes.
-
linked_list.h : This contains function prototype for file linked_list.c
-
pipes.c : This contains function needed to implement pipes.
-
pipes.h : This contains function prototype for file pipes.c.
-
redirection.c : This contains function needed to implement redirection.
-
redir.h : This contains function prototype for file redirection.c.
-
fg.c : This contains function needed to implement fg command.
-
fg.h : This contains function prototype for file fg.c