Question: Write a simple shell program in C. The shell program executes a loop to accept commands from the user and executes the command in a

Write a simple shell program in C. The shell program executes a loop to accept commands from the user and executes the command in a child process. This is a very basic version of a shell command program. You can assume that the executables for the commands that the user may enter do exist in the (/bin/) directory. The shell program is very basic, it does not support command line arguments nor advanced features such as piping.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple example of a basic shell program in C that accepts commands from the user and exec... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!