Linux Week 10 homework

Linux Week 10 homework - CIS 105 Review Homework Assignment...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Page 1 CIS 105 Review Homework Assignment 10 Complete the tasks at the PuTTy screen, then answer the homework questions in Blackboard. First and foremost I would like to stress that I expect two things of you 1) To be able to work at the command prompt to accomplish tasks 2) To know how to quickly look up "how" to accomplish required tasks at the command prompt, in your text and online. To begin, we will start at expectation 2. At the command prompt , type the command to get help with the ls command. Complete this two different ways. To find more information from your textbook, check appendix A (beginning on page 500) and find the command ls. Notice how useful this appendix will be when trying to figure out what the appropriate command to use is, and find more information from the textbook about the command by jumping directly to the appropriate page number. Check the appendix B on page 505. Notice how the commands are listed by category to assist you in finding the appropriate command to accomplish different tasks. Now jump to page 509 - appendix C. Notice how this section will summarize the commands, list the optional parameters as well as direct you to the proper page number to properly use the command. These commands are listed in alphabetical order. Go to page 529 - summary of vi commands. This is a great resource to quickly determine the vi commands you need for any given instance. Still can't figure it out? Go to . Type in the search box Linux ls command. The first web page is which lists all the optional parameters for the ls command, examples on the usage and even suggests other commands to get help on. Use the ls command with appropriate options to display all the files and directories in long format, displaying the newest files first (sort by date). Use only the ls command (no redirecting to sort) Make a directory called Review . Change directories to Review . Create the following directory structure. Do this with one command line entry. ~/Review/first/one/two/three ~/Review/last Using the ls command, list your directory structure under the Review folder. Be certain to list all directories (recursively). Run this command again redirecting the output to a file called myplace Run the command that will allow you to see your present working directory. Run this again, this time append the output to the file called myplace. Append the date to the end of the myplace file. Append only your username (using a command, not typing it in) to the end of the myplace file. Append a calendar of the month of August 2010 to the end of the myplace file. Open the file myplace in vi. Type at the top of the file: This is my practice file (your name) . Save the file and quit the vi editor. Using the search feature of vi, find the word home in the file. Replace this with myhome. Append your last five lines your history file (~/.bash_history) to the end of the myplace file. Change permissions on the file myplace so all users can execute, but they only you can read and write to the file.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/05/2010 for the course CIS 105 taught by Professor Dunn during the Spring '10 term at Skagit Valley College.

Page1 / 25

Linux Week 10 homework - CIS 105 Review Homework Assignment...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online