Updated: 2017-03-13 09:11 EDT

1 Readings, Assignments, Labs, Tests, and ToDo

1.1 Read (at least) these things (All The Words)

  1. Week 04 Notes HTML – this file – Read All The Words
  2. Shell GLOB patterns (wildcard pathname matching)
  3. Shell I/O Redirection – stdin, stdout, stderr, and Pipes
  4. Practice Tests and Answers – practice questions for your midterm test.
  5. List of Commands You Should Know
  6. Video Tutorials on Lynda.com – tagged by week number
  7. Linux and Sysadmin News in the World

1.2 Assignments this week

Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. Just like in the Real World, not all due dates are on the same days or at the same times.

1.3 Lab work this week

1.4 Worksheets

Worksheets are preparation for your assignments. You can’t do the assignments without having done the worksheets first, and you can’t do the worksheets without having first read the Course Notes: 1. Read. 2. Worksheets. 3. Assignment.

Form a small study group to do the worksheets. Each person tries the example given, and you make sure you all get the same answers. Worksheets are not for hand-in; they are not worth marks; the assignments test your knowledge of the lectures and worksheets.

The worksheets are available in four formats: Open Office (ODT), PDF, HTML, and Text. Only the Open Office format allows you “fill in the blanks” in the worksheet. The PDF format looks good but doesn’t allow you to type into the blanks in the worksheet. The HTML format is crude but useful for quick for viewing online.

Do NOT open the Worksheet ODT files using any Microsoft products; they will mangle the format and mis-number the questions. Use the free Libre Office or Open Office programs to open these ODT documents. On campus, you can download Libre Office here.

These first two worksheets require you to have read File System and Pathnames:

Worksheets prepare you for the upcoming assignments.

2 Upcoming tests

For full marks, read the Test Instructions (all the words) before your midterm tests. Put these dates into your phone! Use the Name Game link to test your name before the test. I don’t answer questions about the instructions during the test.

  1. First Midterm test: 45 minutes; in lecture class 10am on Friday in Week 5 (Feb 10)
  2. Second Midterm test: 45 minutes; in lecture class 10am on Friday in Week 9 (Mar 17)

Tests take place at 10am in your 50-minute lecture class, not in your lab period. Each midterm test is 45 minutes long and contains approximately 45 multiple-choice questions similar to those found in Practice Tests and Answers.

2.1 Midterm Test #1 – Friday February 10

2.1.1 Midterm #1 Topics

  • The Weekly Notes 1, 2, 3, and 4 (this week), including the readings.
  • Weekly web pages up to and including Shell I/O Redirection.
  • Worksheets 2, 3, 4, and 5.
  • Assignments 2 and 3.
  • The questions in the first practice test in Practice Tests and Answers.
  • Does not include anything about editors vim or nano.
  • Does not include anything about the Course Introduction.

For full marks, you must read the Test Instructions.

2.1.2 Midterm Test Quizzes Marking Scheme

Three Blackboard quizzes are created from the Practice Tests made available before the two Midterm tests and Final Exam.

Each Midterm and Final Exam will have an associated set of unmarked practice questions and a set of marked quizzes based on those practice questions.

See the course outline for the mark weight of all course quizzes, midterm tests, and exams.

The quizzes are open-book, but the Midterm Tests and Final Exam are closed-book (as will be your job interview).

Each Midterm Test quiz is a small sample taken from the associated full Practice Test located in Practice Tests and Answers.

Each quiz is 10 questions long and you see the answers right after you submit the quiz. You can take the quiz as many times as you like. Every time you take the quiz, you get a random set of ten questions from the practice test.

You will not see all the practice questions by doing quizzes; to see all the practice questions, you must do all the questions in the actual PDF practice test posted in the Course Notes. Review the full PDF file; don’t rely on the quizzes to prepare you for the test!

Each quiz closes just before the Final Exam in this course; quizzes submitted after the Final Exam begins may not count toward your best score.

Your mark for this quiz is the average of your five best quiz scores. Examples:

  • Your best scores: 10 10 10 10 10 10 10 9 8 7 7 4
    • Your quiz mark: (10+10+10+10+10)/50 = 100%
  • Your best scores: 10 10 10 10 9 8 7 7 4 3
    • Your quiz mark: (10+10+10+10+9)/50 = 98%
  • Your best scores: 10 10 10 9 8 7 7 4 3 2
    • Your quiz mark: (10+10+10+9+8)/50 = 94%
  • Your best scores: 10 8 8 8 8 5 4 4 4
    • Your quiz mark: (10+8+8+8+8)/50 = 84%
  • Your best scores: 10 10 8 (only three quizzes submitted)
    • Your quiz mark: (10+10+8+0+0)/50 = 56%

Your score will be taken from the five best scores. The more times you do the quiz, the more likely you are to have a set of excellent best scores. You must have five perfect quiz scores to get a perfect averaged quiz mark. Missing quizzes (fewer than five) count as zeroes. Only the five best scores are averaged. (Blackboard averages all the scores and thus displays your score incorrectly. Ignore the mark on Blackboard.)

This quiz closes just before the Final Exam in this course; quizzes submitted after the Final Exam begins may not count toward your best score.

See the Assignments and Quizzes section in the Blackboard left side-bar for your course.

Note: Blackboard displays the quiz mark incorrectly, since it cannot calculate “best 5” and instead averages the marks of all your quiz attempts. Your quiz mark is actually the average of your five best attempts, not all the attempts as shown by Blackboard. Ignore the Blackboard mark; it is wrong.

3 Notes from the Classroom

3.1 Draw file system diagrams

Draw File System Diagrams to understand where files are when you do the worksheets, the assignments, and the tests and exams!

See Ian Martin’s File System Diagram Example

3.2 Did not change password – CLS access revoked

Students will have their CLS accounts disabled if they have not changed their default password. (I do not want people breaking into my machine because of you.)

See my online timetable for how to make an office appointment to see me if you want your account back.

3.3 Commands Used

Keep a notebook with a List of Commands in it.

  • You need to write down yourself what each command does.
  • Check the updated list of commands each week.
  • I will check for this list in your lab periods.
  • Bring your notes to class! Stop wasting time looking up commands.

3.4 Not Reading All The Words

These do not produce the same output file:

$ find . >foo ; mv foo dir/foo
$ find . >dir/foo

If the assignment asks you to redirect the output into a file in a specific directory, then only the second answer above is correct. The first answer, using mv, will have the wrong pathnames in it.

3.5 Working hard, not working smart

3.6 Not doing worksheets: working hard, not smart

This student below didn’t do the worksheets and doesn’t know about any options to the mkdir command. Instead of typing one command to make the directory tree, he has to use ten (!), and gets the name wrong, too. He also didn’t hear me talk about not using cd all the time, so he marks himself as a Windows newbie. This won’t look good in a job interview:

$ mkdir 1ldIr
$ cd 1ldIr
$ mkdir one
$ mkdir two
$ mkdir one/0neOne
$ cd one
$ ls
$ cd ..
$ ls
$ mkdir two/tw0two

Don’t be this guy. No employer wants to pay you to type ten commands when one will do the job. Work smarter, not harder. Do the worksheets!

4 Fifteen minute rule: don’t waste your time

See the Course Introduction: fifteen minute rule

5 Attacks on the CLS

You are not paranoid if they really are out to get you. See the Week 03 Notes HTML

6 Locked out of the CLS

See the Week 03 Notes HTML

Jan 17 20:26:05 Failed password for XXXXXXXX from 99.248.210.222
Jan 17 20:26:32 Failed password for XXXXXXXX from 99.248.210.222
Jan 17 20:27:50 Failed password for XXXXXXXX from 99.248.210.222
Jan 17 20:28:03 Failed password for XXXXXXXX from 99.248.210.222
Jan 17 20:28:19 Failed password for XXXXXXXX from 99.248.210.222
Jan 19 22:13:39 Invalid user XXXXXXXX@algonquinlive.com from 99.248.210.222
Jan 19 22:15:35 Invalid user XXXXXXXX@algonquinlive.com from 99.248.210.222
Jan 19 22:15:54 Failed password for invalid user XXXXXXXX@algonquinlive.com from 99.248.210.222
Jan 21 18:45:13 Accepted password for XXXXXXXX from 99.248.210.222
Jan 21 19:18:34 Accepted password for XXXXXXXX from 99.248.210.222
Jan 22 17:43:57 Accepted password for XXXXXXXX from 99.248.210.222
Jan 29 17:41:59 Invalid user XXXXXXXX from 99.248.210.222
Jan 29 17:42:14 Failed password for invalid user XXXXXXXX from 99.248.210.222
Jan 29 17:42:35 Failed password for invalid user XXXXXXXX from 99.248.210.222
Take Notes in Class

Take Notes in Class

Author: 
| Ian! D. Allen, BA, MMath  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen