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

  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