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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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