subject

In this assignment, you will write a complete C program that will act as a simplecommand-line interpreter (i. e., a shell) for the Linux kernel. In writing your shell, you areexpected to use the fork-exec-wait model discussed in class. In particular, you are toimplement the following:• Loop continuously until the user enters quit, which exits your shell.• Inside the loop, you will print your "minor5" prompt and read in the user’scommand, which may consist of a Linux command with 0 or more options andarguments supported by the command. You are expected to read in and processonly 1 command at a time with no pipelining or redirection.• In a child process, you are to execute the command as given, including alloptions and arguments given. If the command is not valid, rather than display an"exec failed" message as shown in class examples, you will simply print outthe command itself with "command not found" as shown in the SAMPLEOUTPUT and then exit the child process. The parent process should wait for thechild process to finish. If you have any questions about this, please contact your instructor, TAs, or IAsassigned to this course to ensure you understand these directions. SAMPLE OUTPUT (user input shown in bold):$ ./a. outminor5> lsa. out grades. txt rec01.txt testdir phone. txt route. txt who. txtdu. txt rec01.c file1 rec01sol. c minor5.cminor5> ls -a -l -ttotal 144-rwx 1 cat0299 cat0299 7835 Oct 14 17:39 a. outdrwx 4 cat0299 cat0299 4096 Oct 14 17:39 .-rw 1 cat0299 cat0299 2665 Oct 14 17:39 minor5.c-rw 1 cat0299 cat0299 33 Oct 5 03:30 du. txt-rw 1 cat0299 cat0299 33 Oct 5 01:28 file1-rw 1 cat0299 cat0299 333 Oct 5 01:02 route. txt

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
question
Computers and Technology, 24.06.2019 19:30
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
What phrase indicates someone has knowledge and understanding of computer,internet,mobile devices and related technologies?
Answers: 1
question
Computers and Technology, 25.06.2019 04:40
1. instructions: in your response, make an argument for whether for whether it is better for waketown to build its new wake heights subdivision or to preserve the wake wetlan to preserve the wake wetland preserve. use evidence from at least two of the sources below to support your claim. be sure to introduce your precise claim, develop the claim with evidence from the sources, and demonstrate relationships between ideas. (15 points)
Answers: 2
You know the right answer?
In this assignment, you will write a complete C program that will act as a simplecommand-line interp...
Questions
question
Mathematics, 28.10.2019 21:31
Questions on the website: 13722367