CST8207 Week 11 Notes
Shell Scripts: debugging; Control Statements: if/then/else, test [], case, while, for, functions, etc., Midterm 2 Analysis

Ian! D. Allen – www.idallen.com

Winter 2019 - January to April 2019 - Updated 2019-03-28 21:46 EDT

1 Readings, Assignments, Labs, Tests, and ToDoIndexup to index

1.1 Read (at least) these things (All The Words)Indexup to index

  1. Week 11 Notes HTML – this file – Read All The Words
  2. Command Exit Status – variable $?
  3. Shell Script Debugging – using options -v and -x
  4. Shell Control Structures – if, then, else, test, [...], for, while, case, break, continue, read, functions, &&, ||, errors 1>&2
  5. List of Commands – Command names you should know, listed by week
  6. Video Tutorials on Lynda.com – tagged by week number
  7. Linux and Sysadmin News in the World

1.2 Assignments, Quizzes, and Lab work this weekIndexup to index

Reminder: There are now three quizzes that you need to complete (five times each) on Brightspace as part of your term Quiz mark. The third quiz has be posted. The Quizzes are not optional; see the Course Outline. You need to do each quiz at least five times.

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.2.1 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 the web notes. (Please: Read All The Words)
  2. Do the relevant Worksheet(s).
  3. Do the relevant Assignment(s).

Make notes from the worksheets on how each command works. What do the options used in the worksheets mean, for each command? (See the weekly List of Commands.)

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 get a copy here: Course Introduction: Install Libre Office.

Worksheet #06 is for the optional VIM Bonus Assignment (extra credit):

  • Worksheet #06 HTMLOptional Bonus VIM Text Editor Practice
    • This is an optional worksheet for a BONUS assignment using vim
    • Optional command-line VIM tutorial: the vimtutor program on the CLS.
    • Bonus (optional) Assignment #04 HTML – the VIM text editor
    • Read The VI (VIM) Text Editor
    • Due date changed to March 29.

Worksheet #08 is for Assignment #09 HTML.

Worksheets prepare you for the upcoming assignments.

1.3 Upcoming tests and examsIndexup to index

This course had two midterm tests (10%, 15%) and will have one final exam (40%).

Bring your favourite marker to your exam

Follow this link to see all your upcoming Quizzes and Tests. The dates are also posted on the Course Home Page and on Brightspace CST8207.

For full marks, read the Test Instructions (all the words) before your midterm tests.

  1. First Midterm test: Done.
  2. Second Midterm test: Done.
  3. Final Exam: The date is now posted on ACSIS: Tuesday April 23 from 1pm to 4pm in T119.

2 Midterm Test #2 AnalysisIndexup to index

Here are some statistics for the second midterm test:

The 79 class scores:

97.7 95.8 95.5 95.5 93.2 93.2 93.2 93.2 91.3 91.3 90.9 90.9 90.9 90.9 90 89.1 88.6 88.6 86.4 84.6 84.1 83.2 80.2 80.2 80.2 79.5 77.3 75 75 73.5 73.5 73.5 73.5 68.2 68.2 67 66.8 65.9 65.9 65.9 63.6 63.6 62.4 61.4 61.4 61.1 60.1 60.1 60.1 58.9 57.9 52.9 50 49.3 49 49 47.7 46.8 46.8 44.5 44.5 44 43.2 40.9 40.5 40.1 38.6 35.6 35.6 35.3 34.6 32.7 28.7 26.5 24.5 24.5 23.8 20.5 11.6

 26 A (32.9%)     6 A-    5 A   15 A+ 
  7 B ( 8.9%)     0 B-    6 B    1 B+ 
 16 C (20.3%)     7 C-    5 C    4 C+ 
  4 D ( 5.1%)     1 D-    1 D    2 D+ 
 26 F (32.9%)    16 F-    4 F    6 F+ 
 90% - 100%  15  ***************      
 80% -  90%  11  ***********          
 70% -  80%   7  *******              
 60% -  70%  16  ****************     
 50% -  60%   4  ****                 
 40% -  50%  13  *************        
 30% -  40%   6  ******               
 20% -  30%   6  ******               
 10% -  20%   1  *                    
  0% -  10%   0 

Please Read All The Words!

3 Notes from the ClassroomIndexup to index

3.1 Do not help students fail my courseIndexup to index

Students who give answers (e.g. command lines) to other students are helping those other students fail my course. Stop doing that. I want everyone to pass my course.

3.2 Commands UsedIndexup to index

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.

4 Your own personal web page on the CLSIndexup to index

This is part of Assignment #09 HTML. You can do it now, if you Read All The Words.

5 Who is using the VIM editor?Indexup to index

This page may take a minute or two to load; be patient: Who is using the VIM editor?

6 TutoringIndexup to index

Many students find that hiring a personal tutor helps them get through the first term. Financial assistance is available. See the Tutoring heading in the Course Introduction.

7 SSH and HTTP Attacks on the CLSIndexup to index

You are not paranoid if they really are out to get you! See the Week 03 Notes HTML for command pipelines to count the ongoing attacks on the CLS.

8 Locked out of the CLSIndexup to index

When you are locked out, follow the directions in the notes to get your IP address re-enabled.

Take Notes in Class

9 Step away from your phoneIndexup to index

“Your attention is arguably your most precious asset”

https://www.facebook.com/nicolas.gregoriades/posts/10156741068820660

iPhone FaceHugger by Santiago Vecino: https://www.stanwinstonschool.com/blog/iphone-x-facehugger-wins-facebook-top-ten
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