% Week 03 Notes for CST8207 - Fall 2012 % Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Fall 2012 - September to December 2012 - Updated Wed Feb 18 04:40:41 EST 2015 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 03 Notes HTML] - [Command Arguments and Options] - [Unix/Linux Pathnames (absolute, relative, dot, dot dot)] - [Directories: ROOT, /root, HOME, /home, and current] - [Searching for and finding files by name, size, etc.] - [GLOB patterns (wildcard pathname matching)] - [List of Commands] - Read (All The Words), Do, and Save (but not for hand-in): - [Lab Worksheet #03 ODT] - [Lab Worksheet #03 PDF] - You can download Libre Office (or Open Office) for Windows to edit the `*.odt` files and save your answers. (Or you can print the PDF and write your answers on paper.) Save your answers! - Quizzes will ask you about your answers in your saved worksheets. - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #03] - simple command line directory work - Incorrect assignment names for `assignment02.txt` (by 1am Monday): Assignment02.txt assigment 02.txt assigment02.txt assignment.02.txt assignment02 assignment2.txt - **READ ALL THE WORDS** Install LibreOffice or OpenOffice into Windows ============================================== When you have your Windows base system Installed (in your Desktop Operating Systems course), go to URL on campus (NOT the open Internet, because it would be too slow) and download OpenOffice or LibreOffice for Windows and install it on your base Windows system, so that Windows can read and print the Open Office lab documents used in this course. To find the software on CSTECH, click any room in the left side-bar and look under Drivers and Downloads. Midterm Test #1 - Week 5 - Monday October 1 - 15% ================================================== - Midterm test dates are posted on the [Course Home Page]. - $ `cal -3 10 2012` - Week 6 Mon Oct 8 is a holiday (Thanksgiving) - no classes. - Withdraw date is Fri Nov 9 in Week 10. Week 10 Monday is Nov 5. - Keith’s Network Midterms are Tue Oct 9 (Week 6) and Tue Nov 13 (Week 11). - Midterm Test #1 (Mon Oct 1) covers: - [Week 02 Notes HTML] - [Assignment #02] - [Week 03 Notes HTML] - [Lab Worksheet #03 ODT] - [Assignment #03] - [Lab Worksheet #04 ODT] - [Assignment #04] - See the [Practice Test #1 PDF] and answer file in the [Class Notes]. - You must read the [Test Instructions] before the test for important directions on how to enter your answers and the test version number on the mark-sense forms. Lecture Notes for This Week =========================== - Review last week. Did you do everything assigned last week? From the Class Notes link on the Course Home Page ------------------------------------------------- - [Command Arguments and Options] - [Unix/Linux Pathnames (absolute, relative, dot, dot dot)] - [Directories: ROOT, /root, HOME, /home, and current] - [Searching for and finding files by name, size, etc.] - [GLOB patterns (wildcard pathname matching)] - Next week: [Unix Shell I/O Redirection (including Pipes)] - [List of Commands] From the Classroom Whiteboard/Chalkboard ---------------------------------------- - Send me the Rap video! If you licence it for public view, I’ll post it. ### Doing work for other students makes them fail - When you do the work for another student, your mark goes up (because you practice the commands) and their mark goes down (because they did nothing and can’t remember anything on the tests and exams). Make sure you are not helping another student to fail the course! ### Your in-class notes go here - take notes in class! - Put your Name and contact information on your laptop. - Put your Name and contact information on your power cable. - Put your Name and contact information on your external drive. - Put your Name and contact information on everything. - Never use the userids `abcd0001` or `abcd1234`. These are example userids used in the notes that are meant to be replaced with *your own userid*. If you try repeatedly to log in to the [Course Linux Server] from home using these non-existent userids, your home IP address will be locked out for a day or two. - Incorrect login userid `abcd0001` used into the [Course Linux Server] causes IP lock-out: Failed password for invalid user abcd0001 from 74.58.184.3 port 36326 ssh2 refused connect from modemcable003.184-58-74.mc.videotron.ca (74.58.184.3) - Example advanced sysadmin command pipelines for “Find students with more than five logins and pretty-print with a nice header”: $ last | awk '{print $1}' | sort | uniq -c | sort -n \ | grep -v -e 'idallen' -e 'cst8207a' -e 'reboot' -e 'ubuntu' -e 'wtmp' -e '^ *[1-5] ' \ | pr -2 -f -h "more than 5 logins" $ last | awk '$1 ~ /^[a-z][a-z][a-z0-9][a-z0-9][0-9][0-9][0-9][0-9]$/ {print $1}' \ | sort | uniq -c | sort -n | grep -v -e '^ *[1-5] ' | pr -2 -f -h "more than 5 logins" -- | 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 [Command Arguments and Options]: 150_arguments_and_options.html [Unix/Linux Pathnames (absolute, relative, dot, dot dot)]: 160_pathnames.html [Directories: ROOT, /root, HOME, /home, and current]: 170_home_and_HOME.html [Searching for and finding files by name, size, etc.]: 180_finding_files.html [GLOB patterns (wildcard pathname matching)]: 190_glob_patterns.html [List of Commands]: 900_unix_command_list.txt [Lab Worksheet #03 ODT]: worksheet03.odt [Lab Worksheet #03 PDF]: worksheet03.pdf [Lab Worksheet #04 ODT]: worksheet04.odt [Practice Test #1 PDF]: practicetest1.pdf [Class Notes]: indexcgi.cgi [Test Instructions]: 000_test_instructions.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [Course Linux Server]: 070_course_linux_server.html [Plain Text]: week03notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/