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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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