CST8207 Week 12 Notes
Shell Scripts: test helper, !, [, true, false, elif, case, loops for/while, break, continue

Ian! D. Allen – www.idallen.com

Winter 2018 - January to April 2018 - Updated 2018-04-13 01:17 EDT

1 C O U R S E    E V A L U A T I O NIndexup to index

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

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

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

  1. Week 12 Notes HTML – this file – Read All The Words
  2. Shell Control Structures – if, else, test, [...], for, while, case, break, continue, read, functions, &&, ||, errors 1>&2
  3. Next week: Shell Script Problems – arithmetic, syntax, test, boolean, etc.
  4. List of Commands – Command names you should know, listed by week
  5. Video Tutorials on Lynda.com – tagged by week number
  6. Linux and Sysadmin News in the World

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

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; see the Course Outline.

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.

2.3 Upcoming tests and examsIndexup to index

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

Bring your favourite marker to your test

2.3.1 The Final Exam – 10:30am Saturday April 28 2018 – 40%Indexup to index

The Final Exam is three hours long and contains approximately 180 multiple-choice questions similar to those found in the three preceding Practice Tests and Answers. Do all three practice tests before the Final Exam!

  • Time: 10h30-13h30 (10:30am to 1:30pm) Saturday April 28 (Week 14)
  • Location: T102A,B,C.
  • This exam has assigned seating – see your email for your assigned seat.
  • 180 minutes (three hours) for 180 questions
  • Do all three practice tests before the Final Exam!
  • Three Hours! Take a bathroom break before you start the exam!

All three practice tests will be posted under Practice Tests and Answers. The Final Exam is comprehensive of the whole course; you need to do all three practice tests for the Final Exam.

3 Notes from the ClassroomIndexup to index

3.1 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.

3.2 Finding world-writable files in your accountIndexup to index

See last week’s notes.

4 Your own personal web page on the CLSIndexup to index

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 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 SSH 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
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