SIMPLE SHELL PROJECT

this repository contains code for the implementaion of a simple UNIX command line interface.

Description

Our simple shell can interpret and execute command line arguments read from the standard input. It reads line by line from a file or the terminal line. It then interprets the lines and executes it if the line is a valid command.

Usage

All the code is to be compiled using

gcc -Wall -Werror -Wextra -pedantic *.c -o hsh

Execution

./hsh

the program is to be executed with the above command.

To exit the program, run the command

exit

Supported Shell Commands

  • ls
  • cd
  • pwd
  • vim
  • echo And other supported commands.

Shell Builtins

env

-env variable setenv name VALUE -sets environment variable