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

  Which of the following is an example of system software

Which term refers to software products which promote free distribution, copying, and user modification, such as the Open Office Suite and the Firefox Web Browser?

  Following class definition

Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):

  Carrying out a big data readiness assessment

The theme of the assignment is the reliability (or unreliability) of Assisted GPS Location Services in smart devices (Smart Phones, Tablets, Smart Cameras, etc.).

  Completing a system for meecham feeds

Systems analysis team is close to completing a system for Meecham Feeds

  Write a scholarly paper at an appropriate standard

What object (people, places or things) does it suggest you need to study and what kind of study does the question suggest (empirical--e.g., ethnography, case study, descriptive study, experimental; historical--oral or archival or both; theoretical;..

  Company logo executive summary table of content

Group Portion Think of a business you would like to start. (I prefer Business name to be "World pre-owned Producers, Inc." Develop a business plan for your new business. The 4-6 page business plan must include the following: Company Logo Executive Su..

  Database trends

Database Trends

  Explain performance measures for balanced scorecard system

Explain three specific performance measures which could be utilized in Balanced Scorecard system in industry of your choice.

  Explaining negative reactions to pop-up and pop-behind

Many people have strong negative reactions to pop-up, pop-behind, interstitial, and rich media ads. Assume you are the director of an advertising agency that specializes in creating and placing these ads.

  Provide a final set of documentation

Provide a final set of documentation that includes a fully updated list of all services installed and describes all the standards that have been implemented on their systems. (This should essentially be an updated version of Lab #3 incorporating all ..

  What are the advantages and disadvantages of a global labor

As the economy globalizes, would it be beneficial for labor movements to become global as well? For information on one international labor movement, go to the following website: http://www.uniglobalunion.org/. What are the advantages and disadvantage..

  How much objective function coefficient decreases

Implement the following LP model in a spreadsheet. Use Solver to solver the problem and create a Sensitivity Report. How much can objective function coefficient for variable X2 decrease before changing optimal solution?

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