Create in the scripts directory

Assignment Help Computer Engineering
Reference no: EM133316728

Objective: make a script that uses the prompt method for storing a value in a variable.

Description: In this activity, you make a shell script that prompts the user for the name of a directory to create in the scripts directory and then create the directory and display a directory list on the screen to validate that the directory was created.

If necessary, start a virtual machine in the server mode, sign on. Make sure you are in your home directory!

Change to your scripts directory.

1. Change to your scripts directory.

2. Using vim, create an empty file named scr3.

3. Switch to extended mode and display line numbers.

4. Switch to insert mode, and then create a script the performs the following:

• Sets the environment for the script to bash

• Informs the user what the script is doing.

• Prompts the user for the name of the directory.

• Using a variable assignment, set the name of the new directory.

• Create the new directory subordinate to the scripts directory and send all errors to a null file so the user does not see them on the screen.

• Display the appropriate information (a long list showing the newly created directory will do) so the user knows the directory was created.

5. Exit insert mode. Switch to extended mode and then save your changes and exit the vim editor.

6. Change the permissions on file scr3 to give the owner execute permission.

7. Run the script.

a. Make sure the script works as expected.

Reference no: EM133316728

Questions Cloud

What symptoms indicate this injury may be serious eye injury : A 30-year-old male is accidentally poked in the left eye while playing basketball with a few friends in his driveway.
Comparing traditional and tablet-based intervention : Comparing Traditional and Tablet-Based Intervention for Children With Speech Sound Disorders: A Randomized Controlled Trial.
Develop a health behavior goal : Develop a health behavior goal that you would like to develop in order to reduce your risk for cardiovascular disease, diabetes, metabolic syndrome.
Discuss the differences in healthcare politics : Discuss the differences in healthcare politics. Explain how the two countries finance their healthcare systems.
Create in the scripts directory : Shell script that prompts the user for the name of a directory to create in the scripts directory and then create the directory and display a directory list
Explain how bad habits relates to the illusion of control : Explain how the article relates to the illusion of control. Discuss how automatic processes in the brain (habits) form or work versus more controlled actions
Advantages of a language with built-in exception handling : Explain how C++, Objective-C, C#, and Java each support the 3 features of OOP and Explain Exception Handling - What is an exception
What is a zero-day attack in relation to cybersecurity : Describe how analytic methodologies, both qualitative and quantitative, could leverage the IDS to predict and communicate network anomalies
What are the merits of and academic demand : What are the merits of and academic demand for reproducible research. During the research process, when should researchers start thinking of the reproducibility

Reviews

Write a Review

Computer Engineering Questions & Answers

  CC41-3 Data Mining Assignment

CC41-3 Data Mining Assignment Help and Solution, Level 6 - Majan University College Assessment Writing Service - Faculty of Information Technology

  Reports the total number of bearings

Reports the number of valid, invalid, good, bad, and total bearings after reading in each bearing size (e.g. within the loop).

  Outline sound practices for reducing input errors

Outline sound practices for reducing input errors. Briefly discuss each

  Create the challenges for management

Analyze the issues involved with group account receivables and determine which is most likely to create the challenges for management.

  Explain the software engineering tools in brief

Software engineering tools for soft computing: MATLAB, R Tool and DTREG. Comparison should focus on how they are able to model neural networks.

  Make use of a regularexpressionvalidator control

make Use of Visual Studio.NET 2005 to create an ASP.NET project with four aspx forms. Use Master Pages to display a company name selected by your group at the top each form.

  Test a recursive method that takes an integer array

Write and test a recursive method that takes an integer array and returns the largest element in the array.

  Differences between a requirement and a specification

explain in detail differences between a requirement and a specification. What do they have in common.

  Evaluate suspect-oriented programming using given details

Professor Walia has developed a new programming technique, "Suspect-Oriented Programming" (SOP). To evaluate SOP, he directs half of the students in his.

  Describe the research methods for hardening pfsense

Research methods for hardening PFSense. Using the virtualized PFSense system created harden the PFSense system using Snort.

  Queries in relational algebra

Queries in relational algebra.

  How an operational plan has been developed

The paper should focus on either strategic planning or operational planning. Some individuals are high enough in their organization to be able to engage.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd