A shell is special user program which provide an interface to user to use operating system services. Shell accept human readable commands from user and convert them into something which kernel can understand. It is a command language interpreter that execute commands read from input devices such as keyboards or from files. The shell gets started when the user logs in or start the terminal. In this code we make our own Linux Shell.
Just need a gcc compiler and also install the readline library:
sudo apt-get install libreadline-dev
-
- First of all clone the project :
git clone https://github.com/bahar99/Linux-Shell-in-C
-
- YOU NEED TO LINK THE LIBRARY,PUT -lreadlin IN GCC ARGUMENTS:
gcc shell.c -o shell -lreadline
Reach out to me at boroomand.bahar@yahoo.co.uk