List the contents of the current directory

Assignment Help Programming Languages
Reference no: EM131650486

Assignment

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 previous Individual 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.

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

Questions Cloud

What problems you encountered and how you solved them : What problems you encountered and how you solved them; How much time you spent on each part of the exercise.
What changes do individuals resist : What changes do individuals resist? What changes do individuals not resist? Why do individuals resist some changes but not others?
The specific behavioral problems of multidisciplinary groups : What are the specific behavioral problems of multidisciplinary groups? What is the role of the facilitator?
Discussion regarding the influence of government regulation : Identify 2 possible unfair labor practices for management and 2 for labor unions.If you are the HR leader for an organization
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.
Discuss workers compensation due to his health issues : workers compensation due to his health issues, and analyze the key legal and ethical issues faced by Brads employer throughout this process
Pro and con of a trade agreement among countries : Discuss the Pro's and Con's of a trade agreement among countries. NAFTA has is the trading agreement between the US, Mexico, and Canada.
Explore the issues surrounding unix security : Explore the issues surrounding UNIX security. Specifically, identify major threats to systems running UNIX and list the steps system administrators.
Calculate and store shop price for all items : Write a java console application that allows the user to keep track of various items in a grocery shop. Calculate and store shop price for all items

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