Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

home / study / engineering / computer science / computer science questions and a

ID: 3717556 • Letter: H

Question

home / study / engineering / computer science / computer science questions and answers / i need to use vim to create a web page in your home directory, named raspberry.html. this file ...

Question: I need to use vim to create a web page in your home directory, named raspberry.html. This file sh...

I need to use vim to create a web page in your home directory, named raspberry.html. This file should be created within another directory called public_html. You may do your work on a local Linux system and scp the completed web page into your home directory on the class server. The contents of raspberry.html should include at least the following. The indentation is not important and you may copy/paste this information:

<html>

<head>

<title>your user name</title>

</head>

<body>

<h1><i>some banner</i></h1>

<p>some message</p>

</body>

</html>

Set the permissions for group and others: • for directories that contain your web page, give execute permission. • For your web pages, including raspberry.html, give read permission.

Explanation / Answer

Linux commands-

# Creating file raspberry.html in home directory in folder public_html-

$ vim /home/public_html/raspberry.html

# Adding the given content to the file and saving it. Setting the file permission as given.

# Giving execute permission to public_html directory. Execute permission is given to owner, group and others.

$ chmod 777 /home/public_html

# Giving read permission to raspberry.html file to all the users (owner, group and others)

$ chmod 444 /home/public_html/raspberry.html