% CST8207 Week 06 Notes - Redirection, Pipes, Variables, Editors % Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Winter 2013 - January to April 2013 - Updated Sun May 12 15:33:16 EDT 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 06 Notes HTML] - this file - ** Read All The Words ** - [Unix Shell I/O Redirection (including Pipes)] - [The VI (VIM) Text Editor] - [Shell Variables - Basics (non-scripting)] - [Login and Shell Startup Files, aliases, options: .bash\_profile and .bashrc] - [List of Commands] - From “Unix for Mac OS X Users” at [lynda.com] - **3. Working with Files and Directories** - Unix text editors 6m 39s - vi/vim, nano - **5. Commands and Programs 52m 34s** - Command basics 4m 4s - Using the command history 8m 16s - **8. Unix Power Tools 1h 25m** - grep: Searching for matching expressions 5m 21s - grep: Multiple files, other input 4m 28s - grep options; using grep and pipes; grep and history - grep: Coloring matched text 2m 57s - **7. Configuring Your Working Environment 41m 28s** - Profile, login, and resource files 9m 11s - Setting command aliases 6m 59s - Setting and exporting environment variables 4m 54s - Configuring history with variables 6m 17s - Customizing the command prompt 6m 5s - Logout file 1m 52s - Read (All The Words), Do, and save (not for hand in) - [Lab Worksheet #02 HTML] - [Lab Worksheet #03 HTML] - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #02 HTML] - [Course Linux Server] - [Assignment #03 HTML] - practice with basic commands - [Assignment #04 HTML] - review errors on [Midterm Test #1 PDF] - **READ ALL THE WORDS** From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? - See the midterm results from last week. From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. Unix Shell I/O Redirection (including Pipes) ============================================ - [Unix Shell I/O Redirection (including Pipes)] - be aware of Two Big Redirection Mistakes: - `sort foo >foo` - `nl * >foo` Some Commands ============= Keep a notebook with a [List of Commands] in it: - `head`, `tail` (from last week) - `sum` - checksum a file and produce a number and size - `nano`, `vim`, `vi`, `vimtutor` - editors and tutorial - do the `vimtutor` on the CLS ![Choose Your editor] Real Sysadmin Work ================== ![Baker] -- | 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 [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Shell Variables - Basics (non-scripting)]: 320_shell_variables.html [Login and Shell Startup Files, aliases, options: .bash\_profile and .bashrc]: 350_startup_files.html [List of Commands]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Lab Worksheet #02 HTML]: worksheet02.html [Lab Worksheet #03 HTML]: worksheet03.html [Course Linux Server]: 010_course_linux_server.html [Midterm Test #1 PDF]: midterm1.pdf [Choose Your editor]: data/vi_emacs.png "Choose Your editor" [Baker]: http://sphotos-e.ak.fbcdn.net/hphotos-ak-ash4/225983_476071589080524_1478660289_n.jpg "Baker" [Plain Text]: week06notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/