% Week 04 Notes for CST8207 - Fall 2012 % Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Fall 2012 - September to December 2012 - Updated Sat Oct 13 16:51:45 EDT 2012 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 04 Notes HTML] - [Unix Shell I/O Redirection (including Pipes)] - [Startup Files: .bash\_profile and .bashrc] - [List of Commands] - Read (All The Words), Do, and Save (but not for hand-in): - [Lab Worksheet #04 ODT] - [Lab Worksheet #04 PDF] - Quizzes will ask you about your answers in your saved worksheets. - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #04] - more command line and GLOB work - **READ ALL THE WORDS** Midterm Test #1 - Week 5 - Monday October 1 - 15% ================================================== - Midterm test dates are posted on the [Course Home Page]. - 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? - Send me the Rap video! If you license it for public view, I’ll post it. - videos published: [CST8207 Rap Videos] - any more? From the Class Notes link on the Course Home Page ------------------------------------------------- - [Unix Shell I/O Redirection (including Pipes)] - [Startup Files: .bash\_profile and .bashrc] - [List of Commands] From the Classroom Whiteboard/Chalkboard ---------------------------------------- - Midterm test dates are posted on the [Course Home Page]. ### Your in-class notes go here - take notes in class! Real Sysadmin Work ================== - Using the sleep command to delay an action: I was rebuilding a RAID1 array, and needed to temporarily stop the nightly disk-scan job, so that the RAID1 rebuild could finish on time.\ I used the estimated time to schedule a restart of the disk-scan 80 minutes from now, so that I wouldn’t forget: # kill -STOP 22768 # cat /proc/mdstat md3 : active raid1 sda4[2] sdb4[1] 1441603520 blocks [2/1] [_U] [==================>..] recovery = 91.2% (1316017856/1441603520) finish=62.2min speed=33644K/sec # ( sleep 80m; kill -CONT 22768 ) & # exit -- | 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 [Startup Files: .bash\_profile and .bashrc]: 210_startup_files.html [List of Commands]: 900_unix_command_list.txt [Lab Worksheet #04 ODT]: worksheet04.odt [Lab Worksheet #04 PDF]: worksheet04.pdf [Lab Worksheet #03 ODT]: worksheet03.odt [Practice Test #1 PDF]: practicetest1.pdf [Class Notes]: indexcgi.cgi [Test Instructions]: 000_test_instructions.html [CST8207 Rap Videos]: 000_Rap.html [Plain Text]: week04notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/