Question: Write a simple shell (command interpreter), which reads commands from the standard input and executes them. Here are the features that must be included

Write a simple shell (command interpreter), which reads commands from the standard input and executes them. Here are the features that must be included in your program: Display the prompt " " before reading the next command line. . . Read and parse one command line at a time from the standard input. You can assume that only one command and its arguments are in a command line. The command "exit" should cause your program to terminate. Call fork() to create a new process, which calls one of the exec functions to execute the command that was read. . Your program should wait until the execution of the command is finished and then continue to read the next command line.|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
