Question: Please Help ASAP commands. (Run cmd or PowerShell in windows or the Bash terminal in Linux to have an idea of how this should work).

Please Help ASAP  Please Help ASAP commands. (Run cmd or PowerShell in windows or

commands. (Run cmd or PowerShell in windows or the Bash terminal in Linux to have an idea of how this should work). For example, if you run cat readme.txt", it should print out readme.txt to the command line. General setup of main class. (Name it YourLastNameYourFirstNameShell). 1. 2. Read from System input (Scanner or BufferedReader) Repeat a. Print out a prompt"" or something, similar to Bash, see above) b. Get input c. If it is empty input, continue d. Otherwise, figure out the command and associated parameters i.e., you need to get the "cat" command and the "readme.txt" filename out of the input string create a ProcessBuilder object (a Java feature, see below) start the process get the output stream send the output to the stream (to print it out) i, ii. ili. iv. v

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!