Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Shell scripts. Linux virtual machine terminal. Take a screenshot of the results. Create following (bash) shell scripts and return them here in a single file

Shell scripts. Linux virtual machine terminal. Take a screenshot of the results. image text in transcribed
Create following (bash) shell scripts and return them here in a single file that has been packaged and compressed Name the scripts: step1.sh, step2.sh, step3.sh, and step4.sh. Write the scripts so that they can be executed directly (ie. by running /step1.sh for example) 1. Script that clears the screen, greets the user by his/her login name, and prints the current date. The greeting must change depending on time (ie. Good morning if time is 8-12, Good afternoon is time is 12-16 etc.) 2. Create a script that will present a menu for the user where different commands can be run. Commands must include: long file listing of the current working directory, checking how long the system has been on, how much memory is being used and how much is free, disk space usage (whole system), and disk space usage (current working directory). 3. Build a script that will calculate sums of numbers from 1 through x. Ie. 1 to 5 would be 1+2+3+4+5. User can give the x value as an argument from the command line. 4. Script that lists, one at a time, all files larger than 1MB under the current working directory, Script should give user option to delete, compress, or skip the file and then show next file. All the deleted files and the time when the delete happened should be listed to a logfile

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems X Special Issue On Database And Expert Systems Applications Lncs 8220

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2013th Edition

3642412203, 978-3642412202

More Books

Students also viewed these Databases questions

Question

3. It is the commitment you show that is the deciding factor.

Answered: 1 week ago