Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help making this shell in C CAL STATE bayed Apple Disney ESPN Yahoo! Afam Ezenekw Student Courses Online Storage E-Portfolio organizations & Clubs Help

Need help making this shell in C

image text in transcribedimage text in transcribed

CAL STATE bayed Apple Disney ESPN Yahoo! Afam Ezenekw Student Courses Online Storage E-Portfolio organizations & Clubs Help Write your own simple shell. Your shell should prompt the user for a command, run it, then prompt the user for their next command. If the user types "exit", then the shell should terminate. The shell should ignore Ctrl-C. A sample run could look like this: stalica@trig:- stalica trig ./sh 13 dir p primes .c print. txt s sh Sh.C stty.c tests ls -1 total 72 drwxr-xr-x 2 stalica faculty 4096 Jul 27 00:52 dir rwxr-xr-x 1 stalica faculty 8219 Jul 27 00:51 mv rwxr-xr-x 1 stalica faculty 7562 Aug 13 22:08 p rw-r--r-- 1 stalica faculty 1110 Aug 13 22:08 primes.c rw-r--r-- 1 stalica faculty 40 Aug 13 21:36 print.txt rwxr-xr x 1 atalica faculty 11066 Aug 12 22:21 a rwxr-xr-x 1 stalica faculty 8937 Aug 15 16:22 sh r-- 1 stalica faculty 2158 Aug 15 16:22 sh.c rw-r rw-r--r-- 1 stalica faculty 7930 Aug 12 22:21 stty.c 1 atalica faculty 276 Jul 27 00:06 test mkdir g 13 dir g mv p primes .c print .txt sh sh.c stty.c test exit stalica trig I cd poo poo: No such file or directory cd justice justice: No such file or directory ls 4413901.jpg diet .ods hw06brun.png CAL STATE bayed Apple Disney ESPN Yahoo! Afam Ezenekw Student Courses Online Storage E-Portfolio organizations & Clubs Help Write your own simple shell. Your shell should prompt the user for a command, run it, then prompt the user for their next command. If the user types "exit", then the shell should terminate. The shell should ignore Ctrl-C. A sample run could look like this: stalica@trig:- stalica trig ./sh 13 dir p primes .c print. txt s sh Sh.C stty.c tests ls -1 total 72 drwxr-xr-x 2 stalica faculty 4096 Jul 27 00:52 dir rwxr-xr-x 1 stalica faculty 8219 Jul 27 00:51 mv rwxr-xr-x 1 stalica faculty 7562 Aug 13 22:08 p rw-r--r-- 1 stalica faculty 1110 Aug 13 22:08 primes.c rw-r--r-- 1 stalica faculty 40 Aug 13 21:36 print.txt rwxr-xr x 1 atalica faculty 11066 Aug 12 22:21 a rwxr-xr-x 1 stalica faculty 8937 Aug 15 16:22 sh r-- 1 stalica faculty 2158 Aug 15 16:22 sh.c rw-r rw-r--r-- 1 stalica faculty 7930 Aug 12 22:21 stty.c 1 atalica faculty 276 Jul 27 00:06 test mkdir g 13 dir g mv p primes .c print .txt sh sh.c stty.c test exit stalica trig I cd poo poo: No such file or directory cd justice justice: No such file or directory ls 4413901.jpg diet .ods hw06brun.png

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago