to install readline, feel free to edit it to use fgets
or scanf
refer to this link for reference on both.
sudo apt-get install libreadline6 libreadline6-dev
-
external commands: Can run any external command in
/usr/bin
. -
internal commands
- hello
- cd
- env
- set
to compile the code
mkdir build
mkdir build/bin
make shell
make commands
./build/shell