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

  How could those redundancies lead to anomalies

If you want to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure?

  What are some of most important technological innovations

What are some of the most important technological innovations of the past year?

  How byod is utilised and its associated risks

Conduct an Internet search to gather relevant background information of BYOD - how BYOD is utilised and its associated risks

  Storing and compiling a large amount of data

Because information systems are able to store and compile a large amount of data, many people worry that, their private data will end up in the wrong hands. Explain your position.

  Change the layout options to square

Change the layout options to Square

  How many clock cycles are needed

Indicate data dependency in the above code. Assuming there is no forwarding in the pipeline, how many clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?

  What are some of the more popular database management system

What are some of the more popular database management systems? Why use Oracle?

  Compare computerized process to manual process

ompare a computerized process to manual process. Write differences and the advantages and disadvantages of the computerized systems.

  You are the lead forensic technician within a medium size

create a 15-20 slide powerpoint presentation addressing the following scenarioyou are the lead forensic technician

  Display the total annual pay on the screen

Display the total annual pay on the screen.

  Testing is so essential to the development of a new system

Discuss why testing is so essential to the development of a new system; list the different types of testing that can be completed and why each one is critical. Can testing be overlooked to speed up the development effort?

  Is the difference y-x exactly representable

Is the difference y-x exactly representable, regardless of exponent range, if gradual underflow is allowed? WHy?

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