# 1 C O U R S E    E V A L U A T I O NIndex

`````` ____   _                           ____          __   __
|  _ \ | |  ___   __ _  ___   ___  |  _ \   ___   \ \ / /___   _   _  _ __
| |_) || | / _ \ / _` |/ __| / _ \ | | | | / _ \   \ V // _ \ | | | || '__|
|  __/ | ||  __/| (_| |\__ \|  __/ | |_| || (_) |   | || (_) || |_| || |
|_|    |_| \___| \__,_||___/ \___| |____/  \___/    |_| \___/  \__,_||_|
____ ____ _____   _____            _             _   _
/ ___/ ___|_   _| | ____|_   ____ _| |_   _  __ _| |_(_) ___  _ __
| |   \___ \ | |   |  _| \ \ / / _` | | | | |/ _` | __| |/ _ \| '_ \
| |___ ___) || |   | |___ \ V / (_| | | |_| | (_| | |_| | (_) | | | |
\____|____/ |_|   |_____| \_/ \__,_|_|\__,_|\__,_|\__|_|\___/|_| |_|``````

# 2 Readings, Assignments, Labs, Tests, and ToDoIndex

## 2.1 Read (at least) these things (All The Words)Index

1. Week 13 Notes HTML – this file – Read All The Words
2. Shell Control Structures – if, then, else, test, `[...]`, `shift`, `while`, `do`, `done`
3. Shell Script Problems – arithmetic, syntax, test, boolean, etc.
4. Regular Expressions – matching patterns and replacing text
5. Linux and Sysadmin News in the World
6. List of Commands You Should Know – keep a notebook!
7. Video Tutorials on Lynda.com – tagged by week number

## 2.2 Assignments this weekIndex

When you are done your course evaluation, create an empty file `.courseval_done` in your `Assignments` directory on the CLS and the nag messages in the checking program will go away.

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.

• Read All The Words, Do, and then Submit via Blackboard:
• Bonus (optional) Assignment #04 HTML – the VIM text editor
• Bonus (optional) Assignment #09 HTML – Midterm #2 corrections
• 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 #11 HTML – shell scripts
• The checking program has a new feature to check just one of your scripts.
• Really do Read All The Words. You don’t get a second chance to get it right.
• When you are done your course evaluation, create an empty file `.courseval_done` in your `Assignments` directory on the CLS and the nag messages in the checking program will go away.

## 2.3 Lab work this weekIndex

• Assignment #11 HTML – shell scripts
• The checking program has a new feature to check just one of your scripts.
• Bonus (optional): Read The VI (VIM) Text Editor and optionally do the bonus Assignment #04 HTML.
• Bonus (optional): Complete bonus 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. Do not overwrite your question file with the output of the checking program.

## 2.4 Upcoming testsIndex

Read the Test Instructions (all the words) before all your tests and exams.

• Final Exam: 8am to 11am (three hours) on December 19 in two rooms T117/T119
• Three Hours! Take a bathroom break before you start the exam.
• The final exam emphasizes material after the second midterm test, but it covers the whole course and therefore includes material from all the practice question sets.
• Take a bathroom break before you sit down for three hours!

# 4 From the Classroom Whiteboard/ChalkboardIndex

• Take notes in class! Your in-class notes would go here.

• Bring your notes to class! Stop wasting time looking up commands.

• See the Sysadmin news (above) about local NRCan Linux summer jobs.

## 4.1 The `test` string equality operator is `=` not `==`Index

Don’t use double equals `==` in string tests in your scripts. Follow the link for details.

Write Less Code

## 4.3 Attacks on the Course Linux ServerIndex

• Count the attacks: `fgrep -c "refused connect" /var/log/auth.log`
• Another way to count the lines (less efficient): `fgrep "refused connect" /var/log/auth.log | wc`
• See the current list of evil host IPs: `less /etc/hosts.evil`
``````Author:
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada