% CST8207 Week 10 Notes -- Midterm #2 Analysis, Permissions, Software and Package Management % Ian! D. Allen -- -- [www.idallen.com] % Fall 2015 - September to December 2015 - Updated 2015-11-11 04:57 EST - [Course Home Page] - [Course Outline] - [All Weeks] - [Plain Text] Readings, Assignments, Labs, Tests, and ToDo ============================================ Read (at least) these things (All The Words) -------------------------------------------- 1. [Week 10 Notes HTML] -- this file -- **Read All The Words** 2. [Unix Modes and Permissions, whoami, id, groups, ls -l, chmod] 3. [Permissions masking with umask, chmod, 777 octal permissions] 4. [Unix/Linux Software Package Management: yum, rpm, and tar] 5. [Unix/Linux system logging, log files, kernel messages] 6. [Unix/Linux Processes, Jobs, background, foreground, kill, killall] 7. [Delayed and Repeated Scheduled Execution - at, cron, and crontab] 8. [Linux and Sysadmin News in the World] 9. [List of Commands You Should Know] -- keep a notebook! 10. [Video Tutorials on Lynda.com] -- tagged by week number ![Take Notes in Class] - Create your [lynda.com] account and watch these sections of [Unix for Mac OS X Users] - **4. Ownership and Permissions 34m 58s** - Who am I? 4m 3s - `whoami` - Unix groups 1m 52s - `groups` - File and directory ownership 6m 41s - `ls -la, chown, sudo` - you do not have permission to use `sudo` or `su` on the CLS - File and directory permissions 4m 27s - `rwx` notation - Setting permissions using alpha notation 6m 49s - `chmod` - Setting permissions using octal notation 3m 49s - ``` chmod 644 ``[names...] ``` - The root user 1m 57s - `sudo` and `sudoers` 5m 20s - you do not have permission to use `sudo` or `su` on the CLS - **5. Commands and Programs 52m 34s** - System information commands 3m 40s - `date, uptime, users, who, uname, hostname, domainname` - Viewing processes 5m 0s - `ps` - Monitoring processes 3m 36s - `top` - Stopping \[and terminating\] processes 3m 19s - `kill` Assignments this week --------------------- **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. 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: - Bonus (optional) [Assignment #04 HTML] -- the VIM text editor - [Assignment #08 HTML] -- setting permissions, mode, umask - Do this first: [Worksheet #08 ODT] -- Linux file system permissions (modes) - Bonus (optional) [Assignment #09 HTML] -- Midterm #2 corrections - There is a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong format means no marks. - Really do **Read All The Words**. You don't get a second chance to get it right. ### Worksheets Form a small study group to do the worksheets. Each person tries the example given, and you make sure you all get the same answers. Worksheets teach you how commands work. Worksheets are not for hand-in; they are not worth marks. > The worksheets are available in four formats: Open Office (ODT), PDF, HTML, > and Text. Only the Open Office format allows you "fill in the blanks" in > the worksheet. The PDF format looks good but doesn't allow you to type into > the blanks in the worksheet. The HTML format is crude but useful for quick > for viewing online. Do **NOT** open the ODT files using any Microsoft products; they will mangle the format and mis-number the questions. Use the free Libre Office or Open Office programs to open these ODT documents. On campus, you can [download Libre Office here]. - [Worksheet #02 ODT] -- Using standard Linux commands I - [Worksheet #02 PDF] - [Worksheet #02 HTML] - `PS1, cd, find, less, ls, man, mkdir, passwd, pwd, rmdir` - [Worksheet #03 ODT] -- Using standard Linux commands II - [Worksheet #03 PDF] - [Worksheet #03 HTML] - `cat, clear, cp, find, grep, history, less, man, mv, rm, sleep, touch` - [Worksheet #04 ODT] -- shell GLOB patterns and Aliases - [Worksheet #04 PDF] - [Worksheet #04 HTML] - shell GLOB patterns (wildcards), Aliases: `alias, sum, unalias` - [Worksheet #05 ODT] -- shell I/O redirection (including pipes) - [Worksheet #05 PDF] - [Worksheet #05 HTML] - shell I/O redirection, `date, head, nl, tail, tr, wc` - [Worksheet #06 HTML] -- *Optional* Bonus VIM Text Editor Practice - This is an *optional* worksheet for a BONUS assignment using `vim` - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - Bonus (optional) [Assignment #04 HTML] -- the VIM text editor - Read [The VI (VIM) Text Editor] - [Worksheet #08 ODT] -- Linux file system permissions (modes) - This Worksheet is a prerequisite for [Assignment #08 HTML] - [Worksheet #08 PDF] -- PDF version - [Worksheet #08 HTML] -- HTML version - `chmod, ls -lid, umask` Lab work this week ------------------ - Read [The VI (VIM) Text Editor] and optionally do the bonus [Assignment #04 HTML]. - [Assignment #08 HTML] -- setting permissions, mode, umask - Do this first: [Worksheet #08 ODT] -- Linux file system permissions (modes) - Do Bonus (optional) [Assignment #09 HTML] about Midterm #2 - There will be a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong format means no marks. Upcoming tests -------------- Read the [Test Instructions] (all the words) before all your tests and exams. - Final Exam: 8am to 11am (three hours) on December 19 in two rooms T117/T119 - Three Hours! Take a bathroom break before you start the exam. - The final exam emphasizes material after the second midterm test, but it covers the whole course and therefore includes material from **all** the practice question sets. - Take a bathroom break before you sit down for three hours! The Final Exam is in the room noted above. Midterm Test #2 Analysis ------------------------ - 175 students were registered in the course on midterm day. - Of the 175, 19 did not write the test, leaving 156 who did. - Of the 156, 8 did not enter their name correctly. See below. - Of the 156, 11 did not enter a valid test version number. See below. - Number of students who got question `#45` wrong even though the answer was given in the **Test Instructions** printed at the top of the test: `4` - The 156 class scores: 100 100 100 100 100 100 100 100 97.8 97.8 97.8 97.8 97.8 97.8 97.8 95.6 95.6 93.3 93.3 93.3 93.3 93.3 93.3 91.1 91.1 91.1 91.1 91.1 88.9 88.9 88.9 86.7 86.7 86.7 86.7 86.2 84.4 84.4 84.4 84.4 82.2 82.2 82.2 82.2 82.2 80 80 80 80 80 80 80 79.8 77.8 77.8 77.8 77.6 75.6 75.6 75.6 75.6 75.6 75.6 75.6 75.6 75.6 73.3 73.3 71.1 71.1 71.1 71.1 68.9 68.9 68.9 68.9 68.9 68.9 66.7 66.7 64.4 64.4 64.4 64.4 64.4 64.4 64.4 62.2 62.2 62.2 62.2 62.2 62.2 62.2 62.2 62.2 62.2 60 60 60 57.8 57.8 57.8 57.8 57.8 57.8 57.8 57.8 55.6 55.6 55.6 55.6 53.9 53.3 53.3 53.3 53.3 51.1 51.1 51.1 51.1 49.6 48.9 46.7 46.7 46.7 44.4 42.2 40 40 40 37.8 37.8 37.8 37.8 35.6 35.6 35.6 34.5 33.3 33.3 33.3 33.3 33.3 31.1 31.1 31.1 26.7 26.7 24.4 22.2 22.2 20 20 17.8 15.1 - You can see the class errors in [Midterm Test #2 PDF]. > Students with errors on their forms need to re-read the [Test > Instructions], get their own midterm test question sheet from their lab > instructor (Wenjuan has all the Section 020 question sheets), then follow > the posted instructions for [Booking an Office Apppointment] with Ian to > fix their mark-sense forms. Ian will also carry the Section 010 question > sheets and all the mark-sense forms to all his lab periods in Week 10; see > him in any of his four scheduled lab periods. From the Class Notes link on the Course Home Page ================================================= - [Course Home Page] - [All Weeks] - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - **Take notes in class!** Your in-class notes would go here. - Are you making notes from the worksheets on how each command works? - What do the options used in the worksheets mean, for each command? - Don't copy and use options that you don't understand! - Bring your notes to class! Stop wasting time looking up commands. - SuSE Linux makes Linux videos like nobody else: - [Live-patching a running Linux kernel -- Uptown Funk] - [You need SuSE -- Maroon 5 -- Sugar] Attacks on the Course Linux Server ---------------------------------- - Count the attacks: `fgrep -c "refused connect" /var/log/auth.log` - Another way to count the lines (less efficient): `fgrep "refused connect" /var/log/auth.log | wc` - See the current list of *evil* host IPs: `less /etc/hosts.evil` ![Read All The Words] -- | 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/ [Course Home Page]: .. [Course Outline]: course_outline.pdf [All Weeks]: indexcgi.cgi [Plain Text]: week10notes.txt [Week 10 Notes HTML]: week10notes.html [Unix Modes and Permissions, whoami, id, groups, ls -l, chmod]: 500_permissions.html [Permissions masking with umask, chmod, 777 octal permissions]: 510_umask.html [Unix/Linux Software Package Management: yum, rpm, and tar]: 520_package_management.html [Unix/Linux system logging, log files, kernel messages]: 580_system_log_files.html [Unix/Linux Processes, Jobs, background, foreground, kill, killall]: 600_processes_and_jobs.html [Delayed and Repeated Scheduled Execution - at, cron, and crontab]: 630_crontab_at_job_scheduler.html [Linux and Sysadmin News in the World]: 950_linux_world.html [List of Commands You Should Know]: 900_unix_command_list.html [Video Tutorials on Lynda.com]: 910_lynda_index.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [lynda.com]: http://algonquincollege.com/onlineresources/mobileStudent/lynda.htm [Unix for Mac OS X Users]: http://www.lynda.com/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Assignment #04 HTML]: assignment04.html [Assignment #08 HTML]: assignment08.html [Worksheet #08 ODT]: worksheet08.odt [Assignment #09 HTML]: assignment09.html [download Libre Office here]: 050_course_introduction.html#install-libreoffice-or-openoffice-into-windows [Worksheet #02 ODT]: worksheet02.odt [Worksheet #02 PDF]: worksheet02.pdf [Worksheet #02 HTML]: worksheet02.html [Worksheet #03 ODT]: worksheet03.odt [Worksheet #03 PDF]: worksheet03.pdf [Worksheet #03 HTML]: worksheet03.html [Worksheet #04 ODT]: worksheet04.odt [Worksheet #04 PDF]: worksheet04.pdf [Worksheet #04 HTML]: worksheet04.html [Worksheet #05 ODT]: worksheet05.odt [Worksheet #05 PDF]: worksheet05.pdf [Worksheet #05 HTML]: worksheet05.html [Worksheet #06 HTML]: worksheet06.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Worksheet #08 PDF]: worksheet08.pdf [Worksheet #08 HTML]: worksheet08.html [Test Instructions]: 000_test_instructions.html [Midterm Test #2 PDF]: midterm2_15f.pdf [Booking an Office Apppointment]: /schedule [Live-patching a running Linux kernel -- Uptown Funk]: http://www.youtube.com/watch?v=zbABy9ul11I [You need SuSE -- Maroon 5 -- Sugar]: http://www.youtube.com/watch?v=M9bq_alk-sw [Read All The Words]: ian_algonquin2014_read_all_the_words.jpg "Read All The Words" [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/