% CST8207 Week 08 Notes - file system structure % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Thu Nov 21 14:12:59 EST 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 08 Notes HTML] - this file - **Read All The Words** - [Unix/Linux File System - directories, inodes, etc.] - [Hard links and Unix/Linux file system index nodes (inodes)] - [Hard links and Unix file system nodes (inodes)] - [Unix/Linux Disk Usage, Hard Links, Finding Inodes] - [Symbolic Links] - [List of Commands You Should Know] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] Assignments this week --------------------- 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: - Optional BONUS assignment: [Assignment #04 HTML] – learning the VIM text editor. (Optional BONUS for extra marks.) - [Assignment #05 HTML] – review of Midterm #1 errors - [Assignment #06 HTML] – [Quoting] and [Startup Files] - [Assignment #08 HTML] – [Search Path], [Hard Links][Hard links and Unix/Linux file system index nodes (inodes)], and [Disk Use][Unix/Linux Disk Usage, Hard Links, Finding Inodes] - Assignment #07 HTML (not ready, but see the checking script below) – installing and configuring CentOS in a VM, using [CentOS Installation and Configuration] Lab work this week ------------------ - [Worksheet #06 HTML] – *Optional* VIM Text Editor Practice - This is an *optional* worksheet for an optional BONUS [Assignment #04 HTML] using the `vim` text editor. - Optional Reading: [The VI (VIM) Text Editor] - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - [CentOS Installation and Configuration] - Assignment #7 will verify this installation. - Preliminary checking script ready: see the notes below. Midterm Test #2 - Week 10 - Monday November 4 - 25% ==================================================== - Midterm test dates are posted on the [Course Home Page]. - Midterm Test #2 (Mon Nov 4) covers: - anything from the previous midterm test, especially questions that were not answered correctly, plus: - weekly notes, labs, quizzes, and assignments for Weeks 1 through 8 inclusive. - The emphasis is on material covered since the previous test. - Material in [Assignment #08 HTML] is relevant to this test. - See the [Practice Midterm Test #2 PDF] and answer file in the [Class Notes]. The same questions are posted under **Quizzes** 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. Learning the Material --------------------- - You learn the material because you want to be a Computer Systems Technician. - You like doing this work; you want to be good at it. - Review your mistakes on the first midterm test (questions re-appear). - See the [Practice Midterm Test #2][Practice Midterm Test #2 PDF]. - Review the commands used in each lab worksheet (and their common options). - [Unix/Linux Command List][List of Commands You Should Know] - Review how the shell works: GLOB, redirection, quotes - Know **why** the shell behaves that way. Copy/paste teaches you nothing. - split on semicolons and pipes first, then do redirection - What are the Four Rules for Output Redirection? Three Rules for Pipes? - [Unix Shell I/O Redirection (including Pipes)] 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. - [The importance of spelling] [The importance of spelling - image only] - Copying and using the `argv.sh` program from the course notes, useful for [Assignment #06 HTML]: 1. You can search the web index page for the [Class Notes] to find the full basename of the `argv.sh` program. 2. On the CLS you have a symbolic link `newnotes` that points to the course notes that you created in [Assignment #03 HTML]. Use that link and the name from above to copy the file from the course notes to your directory. 3. Rename the file to be `argv.sh` (if needed). 4. Make the file executable: `chmod ugo+x argv.sh` 5. Try it: `./argv.sh one "2 3" 'four five' six\ seven 8` 6. Use it for [Assignment #06 HTML]. - [Hard links in Microsoft Windows] Preliminary CentOS checking =========================== The CentOS checking program is still being written. Here’s what you can do so far: On the CLS, create your `assignment07` directory in the usual place. Then log in to your CenOS machine (as `root`) and run these three commands on your CentOS machine, replacing *abcd0001* with your own CLS userid in the third one: # cd /tmp # curl -A mozilla http://teaching.idallen.com/cst8207/13f/notes/data/assignment07do.sh >do.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 112 560 112 560 0 0 9433 0 --:--:-- --:--:-- --:--:-- 1931 # USER=abcd0001 sh do.sh --------------------------------------------------------------------------- abcd0001: FETCH version 2. Connecting to CLS as USER='abcd0001' using ssh --------------------------------------------------------------------------- abcd0001: Use local Algonquin IP cst8207-alg.idallen.ca [y/N]? y abcd0001: Please wait; using ssh to connect to user 'abcd0001' on cst8207-alg.idallen.ca ... abcd0001@cst8207-alg.idallen.ca's password: *** COURSE LINUX SERVER *** --------------------------------------------------------------------------- idallen-ubuntu assignment07fetch_server.sh version 4 run by abcd0001. Please wait; collecting info from abcd0001 Virtual Machine --------------------------------------------------------------------------- VM files collected into CST8207-13F/Assignments/assignment07/abcd0001.tar.bz on CLS. Now running checking program for abcd0001 on CLS: ---------------------------------------------------------------------------- check: idallen-ubuntu Fri Oct 18 12:48:40 2013 check: CST8207 assignment07 check program version 37 *** Checking account for abcd0001 on idallen-ubuntu *** Going into HOME directory /home/abcd0001 on idallen-ubuntu GOOD(2): Found correct 'source' statement in .bash_profile GOOD(2): Found non-interactive return first line in .bashrc GOOD(1): Found PS1= line in .bashrc Going into directory CST8207-13F/Assignments/assignment07 on idallen-ubuntu *** 4.? CLS: Set Up Tasks in assignment07 on idallen-ubuntu *** On idallen-ubuntu: Using abcd0001.tar.bz dated Fri Oct 18 12:48:40 2013 Checking 'abcd0001.tar.bz' version 4 created Fri Oct 18 12:48:40 EDT 2013 *** 4.? CentOS 6.4 Installation Verify *** GOOD(2): Found correct hostname NOTE: Found correct kernel running GOOD(2): Found correct number of RPM packages (201) GOOD(2): Found correct memory size GOOD(2): Found correct Toronto time zone *** 4.? CentOS 6.4: Grub menu and time-out *** GOOD(2): Found correct time out line in CentOS 6.4 grub.conf GOOD(2): Found correct hidden menu line in CentOS 6.4 grub.conf *** All Done *** WARNING: Cannot find submission file 'assignment07.txt' on CLS ---------------------------------------------------------------------------- *** CHECK SCRIPT NOT FINISHED YET - SOON *** ---------------------------------------------------------------------------- Real Sysadmin Work ================== - [The Best Linux Distro for Beginners?] - Setting up password-free login using SSH (advanced): - -  ![Take Notes in Class] -- | 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 [www.idallen.com]: http://www.idallen.com/ [Unix/Linux File System - directories, inodes, etc.]: 450_file_system.html [Hard links and Unix/Linux file system index nodes (inodes)]: 455_links_and_inodes.html [Hard links and Unix file system nodes (inodes)]: 455_links_and_inodesA.html [Unix/Linux Disk Usage, Hard Links, Finding Inodes]: 457_disk_usage.html [Symbolic Links]: 460_symbolic_links.html [List of Commands You Should Know]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Unix for Mac OS X Users]: http://wwwlyndacom.rap.ocls.ca/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Quoting]: 440_quotes.html [Startup Files]: 350_startup_files.html [Search Path]: 400_search_path.html [CentOS Installation and Configuration]: 000_centos_install.html [Worksheet #06 HTML]: worksheet06.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Practice Midterm Test #2 PDF]: practicetest2.pdf [Class Notes]: indexcgi.cgi [Test Instructions]: 000_test_instructions.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [The importance of spelling]: http://www.thestar.com/news/queenspark/2013/10/21/kathleen_wynnes_open_government_launch_marred_by_spelling_mistake.html# [The importance of spelling - image only]: data/spelling.jpg [Hard links in Microsoft Windows]: 455_links_and_inodes.html#windows-hard-links-optional [The Best Linux Distro for Beginners?]: http://www.linuxinsider.com/story/Which-Distro-Is-Best-for-Beginners-79177.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week08notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/