Write a C program to implement the command line shell that does the following: A prompt
Fantastic news! We've Found the answer you've been seeking!
Question:
● A prompt should be displayed upon starting the execution of a program and it should allow the user to type basic linux commands one after the other. The program must support at least any 6 commands such as pwd, ls, cd, mkdir, rmdir, rm,cp, etc.
● For each of the user’s commands entered, a separate child process should be created to execute the command and display the output if any.
Note: After displaying the output of each command, the prompt should ask the user for other commands for input and it should be terminated only when the user types the command exit.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: