List the contents of the current directory

Assignment Help Basic Computer Science
Reference no: EM131006213

You have created the directory structure and some base files to be used by the Web server and Web site. For the Web site to be created in a production environment, you need to package your commands in a script so that the patching team can run them on the production environment. Your task for this assignment is the following:

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: EM131006213

Questions Cloud

Respective estimated results in terms of budget surpluses : You have two sets of estimates of national account numbers for a closed economy for next year. In the first set, government expenditures will be $30 billion, transfer payments will be $10 billion, and taxes will be $45 billion. Based on these numbers..
What is the average memory access time : What is the average memory access time - Draw a pipeline diagram illustrating the first iteration of the loop assuming there are no instruction cache misses. Remember that there are two fetch stages
Explain ethical considerations in terms of informed consent : Choose a health care case study on ethical practices form your work environment or from a library article. Explain the basic ethical considerations in terms of informed consent, beneficence, truth telling, and deception.
Context data-flow diagram : a. Construct a context data-flow diagram, illustrating Evergreen Nurseries's whole- sale system. b. Construct a level-0 diagram for Evergreen Nurseries's wholesale system.
List the contents of the current directory : 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.
Explain the demographic and psychographic segments : Identify 4-5 consumer behavior concepts that you have learned in the course that are used in the advertisements. Identify and explain the demographic and psychographic segments to which the ad was designed to appeal
Find the velocity and acceleration at given time : Find the velocity and acceleration at time t. Find the position, velocity, and acceleration of the mass at time t = 5 π/6. In what direction is it moving at that time?
Leadership within the context of the 21st century : LEADERSHIP WITHIN THE CONTEXT OF THE 21ST CENTURY ORGANISATION, Analyze and describe your organization's context in terms of the traditional and/or 21 century organization paradigms/models by following the next steps:
Why has the united states taken a different approach : In many other countries, this right is deemed fundamental and is protected by laws in various forms. In your opinion, why has the United States taken a different approach? What are the pros and cons of no fundamental right to healthcare in the Uni..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Student employment services, ses

Student Employment Services, SES, is an organization dedicated to finding employment for newly qualified students. At the end of each academic year the company advertises its services to students graduating from local colleges and universities.

  Write a program that takes in input a set of search terms

write a program that takes in input a set of search terms, connects to Google's search engine, queries for the search terms, retrieves the HTML page containing the search results

  How to convert power to hex

How to Convert 11001010 to the 2nd power to hex

  What are the advantages of using xml

It is common for XML to be used in interchanging data over the Internet. What are the advantages of using XML in data interchanging?

  What is regex and how do we use it

Can anyone tell us how to add "Do Use" Assertions to Validate Arguments to a private Method?

  How many rows will truth table require if there six variable

How many rows will a Truth Table require if there are six variables and three conditions of each variable? Defend your answer.

  Determine the peak output voltage for the bridge rectifier

Determine the peak output voltage for the bridge rectifier in Figure 1 shown. Assuming the practical model, what PIV rating is required for the diodes. The transformer is specified to have a 12 Vrms secondary voltage for the standard 120 V across ..

  Explain throughput and capacity for effectiveness of system

Do you agree or disagree that throughput and capacity are finding factors for effectiveness of system more so than processor speed?

  Determine degree of statical indeterminacy

Is it statically determinate? If it is not statically determinate, determine its degree of statical indeterminacy? b) Determine the member forces roughly by assuming that diagonal members can't carry compressive loads.

  Design and implement a java program

Design and implement a Java program that will read a file containing numbers and compute the following statistics: the range (low, high), the average and the median (middle number).

  Microsoft project tool easy

Did you find the Microsoft Project tool easy to use? What is your best feature of the tool

  Integration testing plan and test cases

Testing is a critical phase of implementation. For this project, you will create a test plan for your proposed system based on your system design

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