% CST8207 Week 05 Notes - Redirection, VIM, Midterm #1 % Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Winter 2013 - January to April 2013 - Updated Wed May 8 21:01:24 EDT 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 05 Notes HTML] - this file - ** Read All The Words ** - [Unix Shell I/O Redirection (including Pipes)] - [The VI (VIM) Text Editor] - [List of Commands] - From “Unix for Mac OS X Users” at [lynda.com] - **6. Directing Input and Output 20m 39s** - Standard input and standard output 1m 24s - Directing output to a file 4m 13s - Appending to a file 2m 44s - Directing input from a file 5m 28s - Piping output to input 4m 40s - Suppressing output 2m 10s - Read (All The Words), Do, and save (not for hand in) - [Lab Worksheet #02 HTML] - [Lab Worksheet #03 HTML] - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #02 HTML] - [Course Linux Server] - [Assignment #03 HTML] - practice with basic commands - [Assignment #04 HTML] - review errors on [Midterm Test #1 PDF] - **READ ALL THE WORDS** Midterm Test #1 - Week 5 - Thursday February 7 - 15% ===================================================== - Midterm test dates are posted on the [Course Home Page]. - Midterm Test #1 (Thu Feb 7) covers these notes and readings: - [Week 02 Notes HTML] - [Lab Worksheet #02 HTML] - [Assignment #02] - [Week 03 Notes HTML] - [Lab Worksheet #03 HTML] - [Assignment #03] - See the [Practice Test #1 PDF] and answer file in the [Class Notes]. The same questions are posted under **Practice** on Blackboard. - For full marks, you must read the [Test Instructions] before the test for important directions on how to enter your answers, your lab section number, and the test version number on the question sheet and the mark-sense forms. - There may be more questions on the test than you can answer in the time allowed; answer the ones you know, first. Midterm Test #1 Analysis ------------------------- - Number of students (out of 85) who did not follow the Test Instructions printed on the top of the test: `34` - Number of students who did not enter their correct LAB section: `22` - Number of students who did not enter a correct Test Version: `18` - Number of students who got question #46 wrong even though the answer was given in the Test Instructions printed at the top of the test: `10` - Number of students who entered their own name incorrectly on the mark-sense form (usually by shortening it): `4` - Class scores for 85 students: > 97.8 95.7 95.7 95.7 93.5 93.5 91.3 91.3 89.1 89.1 89.1 87 87 87 87 84.3 > 82.6 82.6 82.2 82.2 80.4 80.4 80.4 80.4 80.4 78.3 78.3 78.3 78.3 76.1 > 76.1 75.9 73.9 73.9 73.9 71.7 71.7 69.6 67.4 67.4 67.4 67.4 65.4 65.2 > 65.2 65.2 63.3 63 63 63 61.3 61.3 61.2 60.9 59 58.7 57.2 56.9 56.9 55.4 > 54.8 54.3 53.1 52.7 52.7 51.1 50.6 49 48.5 47 44.3 43.5 43.5 43.5 42.9 > 38 36.8 35.8 34.8 32.6 31.6 31.6 30.7 23.2 21.1 - You can see the errors in [Midterm Test #1 PDF]. From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. - First Midterm test date: Thursday February 7 3pm (Week 5) - Please send me a copy of the [Rap Video] … Some Commands ============= Keep a notebook with a [List of Commands] in it: - `head`, `tail` Unix Shell I/O Redirection (including Pipes) ============================================ - [Unix Shell I/O Redirection (including Pipes)] Real Sysadmin Work ================== - Checking student account directories and mail spool files: # ls /home | wc # ls -d /home/* | wc # ls -d /home/???????? | wc # LC_COLLATE=C ; export LC_COLLATE # strict ASCII sorting in ranges # ls -d /home/[a-z][a-z][a-z0-9][a-z0-9][0-9][0-9][0-9][0-9] | wc # ls -d /var/mail/[a-z][a-z][a-z0-9][a-z0-9][0-9][0-9][0-9][0-9] | wc - Checking student assignments: # ls -d /home/[a-z][a-z][a-z0-9][a-z0-9][0-9][0-9][0-9][0-9]/CST8207-13W ![Study] -- | 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 [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [List of Commands]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Lab Worksheet #02 HTML]: worksheet02.html [Lab Worksheet #03 HTML]: worksheet03.html [Course Linux Server]: 010_course_linux_server.html [Midterm Test #1 PDF]: midterm1.pdf [Practice Test #1 PDF]: practicetest1.pdf [Class Notes]: indexcgi.cgi [Test Instructions]: 000_test_instructions.html [Rap Video]: 000_rap.html [Study]: data/study_verb.jpg "Study" [Plain Text]: week05notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/