==================================== Directions and preparing for Test #2 ==================================== -Ian! D. Allen - idallen@idallen.ca As mentioned on the course home page, your second test is in your lab period on Tuesday, October 26, 2004. Bring a soft pencil (and a good eraser) for Part I of the test. The test is in two parts. ------ Part I - (mostly) closed book multiple choice ------ The first part of the test is multiple choice questions, filled out on mark-sense sheets using a soft pencil. (Bring a good eraser!) It is closed book, except that you may have with you a "crib sheet". A crib sheet is one single piece of paper (metric A4 or standard Letter size) filled with anything you want to put there. You may use both sides. You may hand write the paper or you may machine print it with tiny letters - you choose. You can put text or pictures or programs or anything you want there. You can copy the entire course textbook onto the page, if you can read it. Magnifying glasses are permitted. You must prepare your own crib sheet. You will submit your crib sheet at the end of the test. People who have copied crib sheets from other people will have their marks divided by two. Prepare your own crib sheet. Put your name on your crib sheet. Many sample test questions have been posted to the Notes page: Practice Test #2 Questions practiceTest2.txt (text format) practiceTest2.ps (Postscript format) practiceTest2.pdf (Portable Document Format) All the files contain the same material in a different randomized order. Each file has its own answer key at the end. ------- Part II - open book online shell script work ------- After you have finished Part I, you may start Part II of the test. Part II is online and fully open book, open note, open computer. You will be required to write a working, executable shell script using the VIM editor and using Unix commands from the list of commands you know (see the Notes for the list). See this Notes file for examples of the things you might be asked to do: practiceCommands_2.txt Practice Unix/Linux Questions #2 This test as a whole is worth 15%. The Part I multiple-choice questions [closed book] are worth 9 of the 15%. The Part II shell script [open book] is worth 6 of the 15%. For the shell script section (Part II), the format of the main part of the shell script you will prepare must look similar to this: # Step 1 date echo "hi there" # Step 2 who ls -l /etc/passwd Each step in the script must be preceded by a comment line that starts with '#' that contains the step number. After that line come the shell commands that you use to answer the questions for that step. The script must start with a correct interpreter line and contain lines to set the shell search path and the default permissions for newly created files. I will collect your scripts from your home directories at the end of the test. Do not delete or modify any files until an hour after the test ends, so that I can collect all your files safely. You may find it useful to log in multiple times to the Course Linux Server during the test, so that you can be doing several things at the same time in different windows.