Create the directory structure and create the files

Assignment Help Basic Computer Science
Reference no: EM13776785

Create a Bourne shell script. The script should do the following:

Explain what the script will do and who is the author in a comment area.

cd to your home directory

Show your current working directory.

List the contents of the current directory.

Create the directory structure and create the files as defined in the previous Individual Project.

For each directory and file, test to see if the file or directory already exists; if it does exist, do not recreate; if it is missing, create it.

In the end, generate a directory listing showing the structure and content of the new directories.

At the beginning of the script, set a variable called INSTALL_DIRECTORY that will contain the location of the directory into which the Web server will be installed. At the end of the script, display the contents of this variable along with a message to the installer about the location in which the directories were created.

A small hint for creating the content of the httpd.conf file: use the echo command in your script. The script is not interactive and should create all objects automatically. Also, the ServerRoot and DocumentRoot should contain correct values based on your directory names.

If you need to test that directories are created or not based on them already existing, remove files and directories ahead of time to ensure you know the exact state of your environment.

Reference no: EM13776785

Questions Cloud

Assess munakata network model : Explain and assess Munakata's network model of object permanence (Fig. 9.11). Is this a useful model to understand object permanence?
Review the time value of money simulation : Review the Time Value of Money simulation. Which option did you initially choose, cash or annuity? How were your winnings affected by the cash option?
Difference between the hard problem and the easy problem : Describe in your own words the meaning and the difference between the Hard Problem and the Easy Problem of Consciousness according to Chalmers.
Core set of doctrines-concepts-principles and organization : Define and discuss the similarities and differences between interviews and interrogations. Identify and discuss qualities of an effective interviewer or interrogator. Identify one of the Saint Leo Core values and apply it to the discussion.
Create the directory structure and create the files : Create the directory structure and create the files as defined in the previous Individual Project. For each directory and file, test to see if the file or directory already exists; if it does exist, do not recreate; if it is missing, create it.
What is the moral responsibility of all participants : What is the moral responsibility of all participants? What are the stakeholders' moral failings? What ideals or obligations are in conflict? What is the best outcome, given the consequences
Relationships among health services organizations : As you have learned, health care services are provided through a range of organizations. For this Discussion, you will consider how direct- and indirect-care organizations integrate by examining your own experiences as a health care consumer.
Electrical activity of populations of neurons : Explain what is ment in BOX 3.1: Action Potentials Act, in Many Ways, like a Flushing Toilet. At the end, does the metaphor helps you to understand the process?
Approaches of conflict theory and functionalist theory : What is the main difference between the approaches of CONFLICT THEORY and FUNCTIONALIST THEORY about the nature of crime and criminality? Elaborate with examples.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Why information security is not factor for organization

But would not require to give for information security on those systems. Explain that environment and desribe why information security is not factor for that organization.

  Information security management and framework choice

What are the major perspectives to consider in information security management and framework choice

  Does company culture impact security

Does company culture impact security? If so, in what way? How does this fit into computer ethics?

  Steps necessary for improving and maintaining relations

Describe the steps necessary for improving and maintaining relations with other business units - Can you provide the answer with reference to basic computer science?

  List typical reports needed by this business

List typical reports needed by this business that would be generated from this database and specify their use. For one of the reports listed, define the report, in terms of selection criteria, sort order, data elements and use of the report.

  Define the contested boundaries among amazon

Define the contested boundaries among Amazon, Apple, Facebook and Google

  Convert the phone number

Convert this sample phone number : 293-4223 a. Write the ASCII encoded equivalent: xx xx xx xx xx xx xxh b. Convert the phone number (not individual digits) in binary: xxxx xxxx xxxx xxxx xxxx xxxxb c. Convert the phone number (not individual digi..

  Write a program that implements binary search first using

To understand the value of recursion in a programming language write a program that implements binary search first using recursion and without recursion.

  Questions related to mcqs

The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called _____.

  Registers 0, 1,and 2 when the machine halts

What bit patterns will be in registers 0, 1,and 2 when the machine halts?

  Professional interactive media developers

DIGIMAX Multimedia is a multimedia content development company would like to release various educational CD/DVD in the market. In this regards, the company wants to approach professional interactive media developers

  Accumulation of large amounts of data from multiple sources

The systematic accumulation of large amounts of data from multiple sources

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