% Week 07 Notes for CST8207 - Winter 2012
% Ian! D. Allen - idallen@idallen.ca - www.idallen.com
% Winter 2012 - January to April 2012
Tests and Exams
===============
* The Midterm Test and Final Exam dates are posted on the [Course Home Page].
* Tests are short answer and multiple choice.
* For full mark credit, read the [Test Instructions] for important
directions on how to enter your answers on the mark-sense forms.
* Each test covers material on the preceding assignments and
Weekly Notes, with emphasis on material in the assignments.
Midterm Test #2 includes some material from the first test.
* Basic calculators are permitted for all tests and exams
but will not be needed. (No phones or PDA devices.)
* Your second Midterm Test date is Friday March 16 in class.
A second practice question set was posted on Friday, March 3.
* Final Exam: Monday April 23 11h30 (11:30am to 2pm) - CA105(A,B,C).
A practice question set will be available in Week 14.
Lecture Notes for This Week
===========================
From the Class Notes link on the Course Home Page
-------------------------------------------------
* [Test Instructions](000_test_instructions.html) -
Important directions on how to enter your answers on the mark-sense forms.
* This is [Your Brain on the Internet](005_this_is_your_brain.txt)
* [Frequently Asked Questions](007_freqently_asked_questions.html)
* [How to report Problems](008_how_to_report_problems.txt)
* [Installing VMware Tools](010_vmware_tools.html)
* [Why Learn the Unix Shells?](100_why_shell.txt)
* [Command Line vs. GUI: Power Users need more than GUI](110_command_line_vs_gui.txt)
* [The Unix/Linux Shell](120_shell_basics.html)
* [Searching for items in the Unix manual pages (RTFM)](130_man_page_RTFM.txt)
* [Options and Arguments on Unix Command Lines](140_arguments_and_options.txt)
* [Unix/Linux Pathnames (absolute, relative, dot, dot dot)](150_pathnames.txt)
* [Hard links and Unix file system nodes (inodes)](200_links_and_inodes.html)
* [Unix/Linux File System - (correct explanation)](210_file_system.txt)
* [Directories: ROOT, /root, HOME, /home, and current](220_home_and_HOME.txt)
* [Searching for and finding files by name, size, etc.](250_finding_files.txt)
* [GLOB patterns (wildcard pathname matching)](260_glob_patterns.txt)
* [Unix Shell I/O Redirection (including Pipes)](270_redirection.txt)
* [Unix/Linux Shell Command Line Quoting Mechanisms](280_quotes.txt)
* [The VI (VIM) Text Editor](300_vi_text_editor.html)
* [Unix Modes and Permissions](400_permissions.txt)
* [Umask and Permissions](410_umask.txt)
* [Unix/Linux Command List (cumulative)](900_unix_command_list.txt)
### Assignments and Labs ###
* See your [Blackboard] ToDo list for all assignment due dates
* Finish [Lab #04] - Linux Shell Features
* Finish [Lab #05] - The VI/VIM Text Editor
* Start [Lab #06] - Linux File System Permissions (modes)
### Practice Midterm Test #2 ###
* [Practice Midterm Test #2](practicetest2.pdf)
From the Classroom Whiteboard/Chalkboard
----------------------------------------
* Your in-class notes go here.
- If you're not actively taking notes in class, why are you here?
- Assignments must be [Right the First Time](week01notes.html#right-the-first-time)
* Send me video from the Rap. My wife wants to see me.
- Hey! I've still not received any video. Anyone out there?
* Dates for tests:
- Midterm Test #2 is in-class on Friday March 16.
Do the [practice test](practicetest2.pdf) first.
Midterm test #2 includes all material up to and including lab06,
as well as some repeat questions from the previous midterm test.
- Final Exam on Monday April 23. Do the practice test first.
The Final Exam includes all material.
### Topic: Fun and You ###
* The ISO 9000 Fun Standard:
* 10 signs that you aren't cut out for IT:
### Topic: more Commands ###
* Commands: [Unix/Linux Command List (cumulative)](900_unix_command_list.txt)
### Topics: Shell Features ###
* Shell Standard Input, Output, Error - Redirection
- I/O to and from programs using `|` (pipes)
* Questions
- What are the Rules for Pipes? See
[Unix Shell I/O Redirection (including Pipes)](270_redirection.txt)
- extracting just field 3 from every line: \ ` awk '{print $3}' [files...] `
- extracting just the LAST field from every line: \ ` awk '{print $NF}' [files...] `
- examples using real authorization log
- first and last lines
- only sshd lines
- count of sshd lines
- first and last sshd lines
- refused sshd lines (attempted attacks)
- count of refused sshd lines (attacks)
- IP addresses of most attacks (see "3.3 Examples of pipes"
in the above Redirection link for the full pipeline)
### Topic: The VIM (and VI) editor ###
* [The VI (VIM) Text Editor](300_vi_text_editor.html)
- remember to `set showcmd` in your .vimrc file
### Topic: Modes and Permissions ###
* needed for [Lab #06] - Linux File System Permissions (modes)
* [Unix Modes and Permissions](400_permissions.txt)
* [Umask and Permissions](410_umask.txt)
[Test Instructions]: 000_test_instructions.html
[000_README.txt]: 000_README.txt
[000_Licensing.txt]: 000_Licensing.txt
[005_this_is_your_brain.txt]: 005_this_is_your_brain.txt
[007_freqently_asked_questions.html]: 007_freqently_asked_questions.html
--
| 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](http://johnmacfarlane.net/pandoc/) format