% CST8207 Week 08 Notes – Search Path, Quoting, File Systems % Ian! D. Allen - - [www.idallen.com] % Winter 2014 - January to April 2014 - Updated Mon Mar 3 14:28:42 EST 2014 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] - [Video Tutorials on Lynda.com] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] - **3. Working with Files and Directories** - Hard links 5m 30s - Symbolic links 6m 36s - **5. Commands and Programs** - Disk information commands 6m 8s - df, du, Midterm Test #2 ---------------- - All test and exam dates are posted on the [Course Home Page]. - Midterm #2 takes place Wednesday, March 12 in your lecture. - You must read the [Test Instructions] first. - [170 practice Midterm Test #1 questions] are available along with an answer key in the [Class Notes]. See the [Practice Test README] page. - A Quiz on these 170 questions is available on Blackboard. See the [Week 04 Notes HTML] for how quizzes work. - Midterm Test #2 (Wed Mar 12) 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 #06 HTML] is relevant to this test. - Material in [Assignment #07 HTML] is relevant to this test. Assignments and Lab work this week ---------------------------------- Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. The worksheets are available in four formats: Open Office, 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 and searching online. - Read All The Words, Do, and then Submit via Blackboard: - [Assignment #06 HTML] – Start-Up Files, environment variables, quoting - [Assignment #07 HTML] – search PATH, linking, disk usage - Really do **Read All The Words**. You don’t get a second chance to get it right. ### Optional Bonus Assignments – extra marks - [Assignment #03 HTML] – *Optional* BONUS VIM Text Editor Practice - this is an *optional* worksheet for a BONUS assignment using `vim` - Optional Reading: [The VI (VIM) Text Editor] - [Worksheet #06 HTML] – *Optional* 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. - [Assignment #05 HTML] – *Optional* BONUS Midterm Assignment - this is an *optional* BONUS assignment reviewing your midterm test - there is a checking script available to verify the format of your file 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 ======================================== - **Take notes in class!** Your in-class notes would go here. 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). - For practice tests and quizzes, see the [Practice Test README] - 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)] Real Sysadmin Work ================== - Working directly with Ubuntu developer on software testing: - I installed a proposed `iproute` update to Ubuntu 12.04 “precise” - It broke the `ip route` command - I used the `synaptic` package manager to view the change log and to force-install the previous version of `iproute` - I submitted an email to the developer at 11:39am and a comment on the fix - From: "Ian! D. Allen" Subject: iproute (20111117-1ubuntu2.2) precise broken Date: Sun, 2 Mar 2014 11:39:02 -0500 To: Ubuntu You broke iproute with iproute (20111117-1ubuntu2.2) precise Before, it showed real device interface names: oakS0~$ ip route list 169.254.0.0/16 dev eth3 scope link metric 1000 172.16.174.0/24 dev vmnet8 proto kernel scope link src 172.16.174.1 192.168.2.0/24 dev eth2 scope link src 192.168.2.250 metric 400 192.168.8.0/24 dev eth1 scope link src 192.168.8.250 metric 200 192.168.9.0/24 dev eth0 scope link src 192.168.9.250 metric 100 192.168.84.0/24 dev vmnet1 proto kernel scope link src 192.168.84.1 192.168.100.0/24 dev eth3 proto kernel scope link src 192.168.100.250 192.168.184.0/24 dev vmnet2 proto kernel scope link src 192.168.184.1 216.48.163.96/27 dev eth3 scope link src After, it shows strange "if" names: oakS0~$ ip route list 169.254.0.0/16 dev if12 scope link metric 1000 172.16.174.0/24 dev if10 proto kernel scope link src 172.16.174.1 192.168.2.0/24 dev if2 scope link src 192.168.2.250 metric 400 192.168.8.0/24 dev if3 scope link src 192.168.8.250 metric 200 192.168.9.0/24 dev if4 scope link src 192.168.9.250 metric 100 192.168.84.0/24 dev if8 proto kernel scope link src 192.168.84.1 192.168.100.0/24 dev if12 proto kernel scope link src 192.168.100.250 192.168.184.0/24 dev if9 proto kernel scope link src 192.168.184.1 216.48.163.96/27 dev if12 This breaks anything trying to relate "ifconfig" interface names with "ip route list". - The developer replied by personal email at 13:04, 85 minutes later, saying the patch would not be promoted into the release until fixed. From: Ubuntu To: "Ian! D. Allen" Subject: Re: iproute (20111117-1ubuntu2.2) precise broken Date: Sun, 02 Mar 2014 13:04:56 -0500 Ian, I'm aware the problem. The patch will be rejected in -proposed. https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/1281366 --chris - [*Android beats iOS, becomes top tablet OS: Linux rules*] - *Linux is on the roll and even soon to be acquired Nokia is adoption Linux-based Android. After conquering the smartphone space, Android is now dominating the tablet space. According to a new study by Gartner, “the tablet growth in 2013 was fueled by the low-end smaller screen tablet market, and first time buyers; this led Android to become the No. 1 tablet operating system (OS), with 62 percent of the market.”* - [*Dice: How Linux Hiring Compares with the Rest of Tech*] - *In technology, there is a big difference between a position and a career. Linux professionals can take solace in the fact that their skills lend themselves to great long term career prospects, no matter what positions they may hold today.* - *When it comes to Linux skills, hiring is robust and a priority. 46 percent of hiring managers suggest Linux skills are mission critical for the year ahead. On Dice, employers advertise more than 11,000 Linux related positions on any given day. At that level of demand, Linux professionals can truly define their own career roadmaps.* - [*$7,000-per-month tech interns*] - *Glassdoor releases a list of the highest-paying companies for interns and (surprise, surprise) most of them are tech companies.* ![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 [Video Tutorials on Lynda.com]: 910_lynda_index.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 [Test Instructions]: 000_test_instructions.html [170 practice Midterm Test #1 questions]: practicetest2.pdf [Practice Test README]: PRACTICE_TEST_README.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [*Android beats iOS, becomes top tablet OS: Linux rules*]: http://www.muktware.com/2014/03/android-beats-ios-becomes-top-tablet-os-linux-rules/22051 [*Dice: How Linux Hiring Compares with the Rest of Tech*]: https://www.linux.com/news/featured-blogs/200-libby-clark/763971-dice-how-linux-hiring-compares-tech-market [*$7,000-per-month tech interns*]: http://news.cnet.com/8301-17938_105-57619716-1/$7000-per-month-tech-interns-are-making-bank-says-report/ [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week08notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/