% CST8207 Week 03 Notes - command line, file GLOB patterns, Redirection, Pipes % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Mon Oct 7 00:38:28 EDT 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 03 Notes HTML] - this file - **Read All The Words** - [Directories: ROOT, /root, HOME, /home, and current] - [Searching for and finding files by name, size, use, modify time, etc.] - [Shell GLOB patterns (wildcard pathname matching)] - [Unix Shell I/O Redirection (including Pipes)] - [List of Commands You Should Know] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] - **3. Working with Files and Directories** - Naming files 5m 41s - Unix is case-sensitive, OSX is case-insensitive! - avoid special characters or blanks in Unix pathnames - use quotes to surround names with blanks or special characters - Creating files 2m 19s - `touch` - Unix text editors 6m 39s - `vi/vim, nano` - Reading files 5m 35s - `cat, more, less` - Reading portions of files 3m 27s - `head, tail` - Creating directories 2m 40s - `mkdir` - Moving and renaming files and directories 8m 32s - `mv` (including using `..`) - Copying files and directories 3m 7s - `cp` - Deleting files and directories 3m 38s - `rm, rmdir` - Searching for files and directories 6m 32s - `find` - **5. Commands and Programs** - Command basics 4m 4s - commands are usually small programs; ways to exit from programs - Using the command history 8m 16s - shell command history is saved your `.bash_history` file - **6. Directing Input and Output 20m 39s** - Standard input and standard output 1m 24s - Directing output to a file 4m 13s - Appending to a file 2m 44s - Directing input from a file 5m 28s - Piping output to input 4m 40s - Suppressing output 2m 10s - **7. Configuring Your Working Environment 41m 28s** - Setting command aliases 6m 59s - saving aliases in your `.bashrc` file 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: - [Assignment #01 HTML] – Multi-tasking and Homework - [Assignment #02 HTML] – simple file system commands on the CLS Lab work this week ------------------ - [Worksheet #02 HTML] – Using standard Linux commands - [Worksheet #03 HTML] – Using standard Linux commands Errors in submitted assignment01.txt ------------------------------------ As of 9pm Sunday September 15, the following students have not **Read All The Words** in Assignment 1 and will not be getting marks: Bad file name: part 2.txt Bad file name: assignment 01.txt Bad file name: CST8207 Assignment 01 Xxxxxxx.txt Bad file name: Assignment01.txt Bad file name: assignment01XxxxxXxxxxxxx.txt Assignment(s) uploaded without file attachment Bad file name: assignment01.txt.txt Text found in Blackboard comments box (ignored) Bad file name: assignment 01.txt Bad file name: assignment01.txt.txt Bad file name: xxxxxxxx_assignment01.txt Bad file name: Assignment01.txt **Go to your assignment upload area and check your file name!** Here are the class errors for Assignment 1 (140 students): 1 BAD_FILE_TYPE: file Assignment 1 (part II as instructed).rtf is incorrect type Rich Text Format data, version 1, ANSI text/rtf 1 BAD_NAME: file uploaded with incorrect name 'Assignment 1 (part II as instructed).rtf' 3 BAD_NAME: file uploaded with incorrect name 'Assignment01.txt' 1 BAD_NAME: file uploaded with incorrect name 'assignment 01.txt' 3 BAD_NAME: file uploaded with incorrect name 'assignment01.txt.txt' 1 BAD_NAME: file uploaded with incorrect name 'linux assignment 1.txt' 1 BAD_NAME: file uploaded with incorrect name 'part 2.txt' 1 COMMENT_BOX_IGNORED: do not upload Blackboard comments 10 LATE: file uploaded after due date 2013-09-16 08:01 16 NOT_FOUND: no assignment file uploaded before 2013-09-17 14:17 41 WRONG_NUMBERING: You did not number each of your three answers correctly From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? Midterm Test Dates ------------------ - First Midterm test date: Monday October 7 (Week 6) in your regular class period. - See the date survey results: - 45 minutes; 15% - Second Midterm test date: Monday Novermber 4 (Week 10) in your regular class period. - See the date survey results: - 60 minutes; 25% - For full marks, you must read the [Test Instructions] before the test for important directions on how to enter your answers, your lab (not lecture) 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. From the Classroom Whiteboard/Chalkboard ======================================== - [Mickeleh’s critique of Dan Brown] - Your in-class notes go here. - How to report problems? - Quick review of commands used in worksheets. - GLOB patterns match file names. - Show file extensions in Windows. - Redirection and pipes. Real Sysadmin Work ================== - Quebec creates a new [Centre of Expertise in Free/Open Source Software] - UK Government now has a clear preference for open source software: > Use open source software in preference to proprietary or closed source > alternatives, in particular for operating systems, networking software, Web > servers, databases and programming languages. > > Problems which are rare, or specific to a domain may be best answered by > using software as a service, or by installing proprietary software. In such > cases, take care to mitigate the risk of lock-in to a single supplier by > ensuring open standards are available for interfaces. > > For unique needs and common problems which have yet to be solved well > elsewhere, develop software by coding in the open and publish under an open > source licence. > > - Choose your career!  ![Baker] - Job posting requiring you to [Read All The Words]  ![Read All The Words][1]  ![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/ [Directories: ROOT, /root, HOME, /home, and current]: 170_home_and_HOME.html [Searching for and finding files by name, size, use, modify time, etc.]: 180_finding_files.html [Shell GLOB patterns (wildcard pathname matching)]: 190_glob_patterns.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.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 [Worksheet #02 HTML]: worksheet02.html [Worksheet #03 HTML]: worksheet03.html [Test Instructions]: 000_test_instructions.html [Mickeleh’s critique of Dan Brown]: http://www.youtube.com/watch?v=SFeiiPdTibE [Centre of Expertise in Free/Open Source Software]: http://www.tresor.gouv.qc.ca/nouvelles/article/le-logiciel-libre-est-une-option-incontournable-pour-le-gouvernement-du-quebec/ [Baker]: http://sphotos-e.ak.fbcdn.net/hphotos-ak-ash4/225983_476071589080524_1478660289_n.jpg "Baker" [Read All The Words]: http://www.shopify.ca/careers?posting=ecommerce-consultant-guru [1]: data/lesen_sie.jpg "Read All The Words" [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week03notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/