% CST8207 Week 10 Notes -- Midterm Test Analysis, Delayed and Repeated Scheduled Execution with cron and at, Shell Scripts % Ian! D. Allen -- -- [www.idallen.com] % Winter 2016 - January to April 2016 - Updated 2016-03-28 15:47 EDT - [Course Home Page] - [Course Outline] - [All Weeks] - [Plain Text] Readings, Assignments, Labs, Tests, and ToDo ============================================ Read (at least) these things (All The Words) -------------------------------------------- 1. [Week 10 Notes HTML] -- this file -- **Read All The Words** 2. [Delayed and Repeated Scheduled Execution - at, cron, and crontab] 3. [Shell Scripts -- lists of commands, executable scripts, script header, command arguments and positional parameters] 4. [List of Commands You Should Know] 5. [Linux and Sysadmin News in the World] 6. [Video Tutorials on Lynda.com] -- tagged by week number Assignments this week --------------------- > **Reminder:** There are now two quizzes that you need to complete on > Blackboard as part of your term Quiz mark. A third quiz will be posted > before the Final Exam. The Quizzes are *not* optional. 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. - Read All The Words, Do, and then Submit via Blackboard: - Bonus (optional) [Assignment #04 HTML] -- the VIM text editor - [Assignment #08 HTML] -- setting permissions, mode, `umask` - Bonus (optional) [Assignment #09 HTML] about Midterm #2 - There is a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong format means no marks. - [Assignment #10 HTML] -- tar, processes, syslog, crontab, at, mail, shell script - Really do **Read All The Words**. You don't get a second chance to get it right. ### Worksheets Worksheets are preparation for your assignments. You can't do the assignments without having done the worksheets first. 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]. - [Worksheet #08 ODT] -- Linux file system permissions (modes) - This Worksheet is a prerequisite for [Assignment #08 HTML] - [Worksheet #08 PDF] -- PDF version - [Worksheet #08 HTML] -- HTML version - `chmod, ls -lid, umask` Lab work this week ------------------ - Read [The VI (VIM) Text Editor] and optionally do the bonus [Assignment #04 HTML]. - [Assignment #08 HTML] -- setting permissions, mode, `umask` - Do the worksheet first on Linux file system permissions (modes): - [Worksheet #08 ODT] -- use Open Office or Libre Office to complete this worksheet - [Worksheet #08 PDF] -- pretty version - [Worksheet #08 HTML] -- quick web online version (not pretty) - Bonus (optional) [Assignment #09 HTML] about Midterm #2 - There is a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong format means no marks. - [Assignment #10 HTML] -- tar, processes, syslog, crontab, at, mail, shell script Midterm Test #2 Analysis ------------------------ - 76 students were registered in the course on midterm day. - Of the 76, 8 did not write the test, leaving 68 who did. - Of the 68, 4 did not enter their name correctly. See below. - Of the 68, 7 did not enter a valid test version number. See below. - Number of students who got question `#45` wrong even though the answer was given in the **Test Instructions** printed at the top of the test: `1` - The 68 class scores: 97.8 95.6 94.6 93.3 91.1 91.1 91.1 90.2 88.9 88.9 88.9 88.9 86.7 84.4 84.4 80 80 77.8 77.8 77 75.6 75.6 75.6 73.3 73.3 73.3 66.7 66.7 66.7 66.7 64.4 62.2 62.2 61.6 61.6 60 60 59.4 58.8 57.8 57 55.6 55.6 51.1 51.1 48.9 48.4 46.7 46.7 46.7 46.2 44.4 44 35.6 35.6 33.3 33.3 33.3 33.3 30.8 28.9 28.9 28.9 28.9 26.1 26.1 24 23 17 A (25.0%) 4 A- 5 A 8 A+ 9 B (13.2%) 0 B- 6 B 3 B+ 11 C (16.2%) 6 C- 1 C 4 C+ 8 D (11.8%) 2 D- 2 D 4 D+ 23 F (33.8%) 15 F- 3 F 5 F+ 90% - 100% 8 ******** 80% - 90% 9 ********* 70% - 80% 9 ********* 60% - 70% 11 *********** 50% - 60% 8 ******** 40% - 50% 8 ******** 30% - 40% 7 ******* 20% - 30% 8 ******** 10% - 20% 0 0% - 10% 0 - You can see the class errors in [Midterm Test #2 PDF]. > Students with errors on their forms need to re-read the [Test Instructions] > and then watch their email for directions on how and when to fix the name > or version number on their mark-sense form. If you don't fix your form, you > don't get your marks. Final Exam 8am C144 Wednesday April 27 -------------------------------------- The **Final Exam** is 8am to 11am (three hours) in C144 Wednesday April 27 in Week 15. Put the 8am exam date and time into your phone reminders! - Read the [Test Instructions] (all the words) before your exam. - The final exam emphasizes material after the second midterm test, but it covers the whole course and therefore includes material from **all** the assignments and [Practice Tests and Answers]. - Three Hours! Take a bathroom break before you start the exam. From the Class Notes link on the Course Home Page ================================================= - [Course Home Page] - [All Weeks] - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - **Take notes in class!** Your in-class notes would go here. Fifteen minute rule ------------------- Your time as a student is valuable. See the [Week 03 Notes HTML]. Commands -------- Keep a notebook with a [List of Commands][List of Commands You Should Know] in it. - You need to write down yourself what each command *does*. - I will check for this list in your lab periods. - Check the updated list of commands each week. Locked out ---------- The CLS will lock out your IP address if you can't type your own userid correctly. If this happens, you have to follow the posted directions to have me unlock your IP address. You can change to another IP address. You can always come to school where no IP addresses are locked out. Attacks on the Course Linux Server ---------------------------------- - Count the attacks: `fgrep -c "refused connect" /var/log/auth.log` - Another way to count the attack lines (slightly less efficient): `fgrep "refused connect" /var/log/auth.log | wc` - See the current list of *evil* host IPs: `less /etc/hosts.evil` ![Take Notes in Class] -- | Ian! D. Allen - 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 [www.idallen.com]: http://www.idallen.com/ [Course Home Page]: .. [Course Outline]: course_outline.pdf [All Weeks]: indexcgi.cgi [Plain Text]: week10notes.txt [Week 10 Notes HTML]: week10notes.html [Delayed and Repeated Scheduled Execution - at, cron, and crontab]: 630_crontab_at_job_scheduler.html [Shell Scripts -- lists of commands, executable scripts, script header, command arguments and positional parameters]: 700_shell_scripts.html [List of Commands You Should Know]: 900_unix_command_list.html [Linux and Sysadmin News in the World]: 950_linux_world.html [Video Tutorials on Lynda.com]: 910_lynda_index.html [Assignment #04 HTML]: assignment04.html [Assignment #08 HTML]: assignment08.html [Assignment #09 HTML]: assignment09.html [Assignment #10 HTML]: assignment10.html [download Libre Office here]: 050_course_introduction.html#install-libreoffice-or-openoffice-into-windows [Worksheet #08 ODT]: worksheet08.odt [Worksheet #08 PDF]: worksheet08.pdf [Worksheet #08 HTML]: worksheet08.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Midterm Test #2 PDF]: midterm2_16w.pdf [Test Instructions]: 000_test_instructions.html [Practice Tests and Answers]: PRACTICE_TEST_README.html [Week 03 Notes HTML]: week03notes.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/