Shell Implementation in C By Rutwik Reddy
Introduction
This is a basic shell implemented using syscalls and C language.
How to Run
-
Install make (if not installed) by running the command sudo apt-get install make
-
Type the command make run
-
Run the shell ./run
Features of this Shell
-
cd command
- cd
- cd ~
- cd .
- cd ..
- cd
-
pwd command
- pwd
-
echo command
- echo "" (Bonus Marks)
- echo '' (Bonus Marks)
- echo
-
ls command
- ls
- ls -l
- ls -a
- ls -al and its variations
-
System commands
- All commands work for foreground and background processes
- PID is returned when we kill the background process
-
pinfo command(Prints information related to the process)
- pinfo
- pinfo
Bonus:-
-
remindme command(Prints a message in the shell after a specifed duration)
- remindme ""
-
clock command(Prints the time of the machine every seconds)
- clock -t