Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: write a simple shell myshell that has the following properties: Design a simple command line shell that satisfies the below criteria and implement it

Problem: write a simple shell myshell that has the following properties: Design a simple command line shell that satisfies the below criteria and implement it on a Linux platform. The shell must support the following internal commands:

- cd - change the current default directory to . If the directory argument is not present, report the current directory. If the directory does not exist an appropriate error should be reported. This command should also change the PWD environment variable.

- clr clear the screen

- dir - list the contents of directory

- echo - display on the display followed by a new line (multiple spaces/tabs may be reduced to a single space)

- quit - quit the shell

Side notes:

All other command line input is interpreted as program invocation which should be done by the shell forking and executing the programs as its own child processes. The shell must support background execution of programs. An ampersand (&) at the end of the command line indicates that the shell should return to the command line prompt immediately after launching that program. The command line prompt must contain the pathname of the current directory.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago