List the contents of the current directory

Assignment Help Programming Languages
Reference no: EM131207778

Shell Programming

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:

1. Explain what the script will do and who is the author in a comment area.
2. cd to your home directory
3. Show your current working directory.
4. List the contents of the current directory.
5. Create the directory structure and create the files as defined in the Project.
6. 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.
7. In the end, generate a directory listing showing the structure and content of the new directories.
8. 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.

Reference no: EM131207778

Questions Cloud

Facilitate consultation and participation : Q.1 What methods can be used to facilitate consultation and participation? Discuss in 100-120 words Q. 2 Explain (100-120 words) the barriers you think might prevent effective communication of health and safety information.
How the two countries are similar in terms of hofstede''s : Given a scenario where two organizations, one located in each country, are to do business with each other, provide recommendations that would be beneficial in helping management address communications in terms of the different cultural perspective..
Prepare a corrected balance sheet : Identify the assumptions that Millie has violated and explain how each event should have been handled. Prepare a corrected balance sheet.
How much influence should stakeholder interests exert : Current trends indicate that for-profit companies are paying close attention to stakeholder interests. How much influence should stakeholder interests exert over a for-profit company? Why?
List the contents of the current directory : List the contents of the current directory. Create the directory structure and create the files as defined in the previous Individual Project.
Approaches would be appropriate and beneficial to the busine : Discuss two (2) strategies that they can use to enter the global market, and explain why these approaches would be appropriate and beneficial to the business.
May you intentionally prepare a tax return for joe : Are you personally obligated to abide by the AICPA's Statement of Standards for Tax Services, even though you do not work in public practice?
What is my standard for a completed test : What is my standard for a completed test? That the two blades of the scissors came together in a scissoring motion when I closed the scissors.
Description of the excellence framework they implemented : Develop a list of questions to be asked and undertake the interview. Write this up in a report.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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