Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A shell is a way to interact with a computer system using a set of standard commands. Shell commands are two kinds: internal and

A shell is a way to interact with a computer system using a set of standard commands. Shell commands are two

A shell is a way to interact with a computer system using a set of standard commands. Shell commands are two kinds: internal and external. Internal commands are built into and part of the shell itself (the shell know how to execute). External commands are stand alone executable commands that the shell executes upon user request. The ability for the shell to execute external commands gives users the ability to scale up and execute commands that are new (e.g. users' own compiled programs). Write a C program that tokenize a string then save the output token in array of strings and print them on the screen. Write a C program "MyShell" that execute the following command using the c-library function system(char * cmd). 1. clear: clears the screen. 2. exit: quits the shell. 3. listen: lists all environment strings. 4. pwd: prints the current working directory.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres the C program to tokenize a string and print the tokens include include void tokenize... 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

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students also viewed these Operating System questions

Question

What is an aged accounts receivable report?

Answered: 1 week ago

Question

What is the effect of word war second?

Answered: 1 week ago

Question

14. What are the functions of the prefrontal cortex?

Answered: 1 week ago