this repository contains code for the implementaion of a simple UNIX command line interface.
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.
All the code is to be compiled using
gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
./hsh
the program is to be executed with the above command.
To exit the program, run the command
exit
- ls
- cd
- pwd
- vim
- echo And other supported commands.
env
-env variable setenv name VALUE -sets environment variable