A Linux shell coded in C, consisting of 10 commands with 2 options each and accepting all possible arguments. Coded both internal and external commands, using fork()
and exec()
system calls respectively. Also handled various corner cases and errors.
Run the following commands on the terminal
git clone https://github.com/ananyalohani/lohanish.git
cd lohanish
make
./shell
For the full details of implementation, check out documentation.pdf
.
-
cd
:-P
,--help
-
echo
:-n
,-E
-
history
:-c
,-d
-
pwd
:-P
,--help
-
exit
-
ls
:-m
,-D
-
cat
:-n
,-E
-
date
:-u
,-R
-
rm
:-v
,-i
-
mkdir
:-v
,-p