% CST8207 Week 03 Notes - command line and the Course Linux Server [CLS] % Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Winter 2013 - January to April 2013 - Updated Wed May 8 21:01:24 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 ** - [Unix/Linux File System and Pathnames (ROOT, absolute, relative, dot, dot dot] - [Directories: ROOT, /root, HOME, /home, and current] - [Finding Help in Manual Pages - RTFM] - [Searching for and finding files by name, size, use, modify time, etc.] - [List of Commands] - From “Unix for Mac OS X Users” at [lynda.com] - **2. Filesystem Basics** - The working directory 2m 49s - pwd - Listing files and directories 3m 59s - pwd, ls, hidden files - Moving around the filesystem 4m 58s - cd, TAB filename completion, absolute/relative paths - Filesystem organization 4m 12s - ROOT, standard Unix folders - **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 - 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 - find - **5. Commands and Programs** - Command basics 4m 4s - Read (All The Words), Do, and save (not for hand in) - [Lab Worksheet #02 HTML] - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #02 HTML] - [Course Linux Server] - **READ ALL THE WORDS** Errors in submitted assignment01.txt ------------------------------------ Bad file name: Assignment01.txt Bad file name: assingment01.txt Bad file name: Assignment 1.docx Bad file name: Assignment 01.txt Bad file name: assignment01.txt.txt Bad file name: assignment 1.tt From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? - First Midterm test date: Thursday February 7 3pm (Week 5) - Second Midterm test date: Thursday March 21 3pm (Week 10) - Please send me a copy of the [Rap Video] … From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. Put Your Name On Your Stuff --------------------------- - Put your Name and contact information on your laptop. - Put your Name and contact information on your power cable. - Put your Name and contact information on your external drive. - Put your Name and contact information on everything. Doing work for other students makes them fail --------------------------------------------- - When you do the work for another student, your mark goes up (because you practice the commands) and their mark goes down (because they did nothing and can’t remember anything on the tests and exams). Make sure you are not helping another student to fail the course! Lab work -------- - Spell your file names correctly. See above. - See the draft of [Assignment #02 HTML]. Note the **NEW DUE DATE**. - Never use the userids `abcd0001` or `abcd1234`. See last week’s notes. Real Sysadmin Work ================== - [Good news for job hunters in Android, Linux, and open source] - “the most important thing they have in common is that they each require a fundamental understanding of Linux” - “technology professionals with these skills and expertise are being sought like never before” Some crackers try to fetch the password file from my machine using long strings of parent directories in Web URLs: aku.staff.makson.us - - [15/Oct/2008:21:16:13 -0400] "GET /http://www.1stproducts.com/2007/index.php?content=http://www.toonzone.net/teentitans/index.php?content=releases/soundtrack/tokyo/index/index.php?content=../../../../../../../../../../../../../etc/passwd%00%0D?? HTTP/1.1" 404 914 "-" "libwww-perl/5.813" lincl849.intelfon.com - - [17/Oct/2008:16:50:14 -0400] "GET /cst8129/02f/notes//affiliates/index.php?md=../../../../../../../../../../../../../etc/passwd%00 HTTP/1.1" 404 684 "-" "libwww-perl/5.805" ns228591.ovh.net - - [23/Apr/2012:23:28:50 -0400] "GET /index.php?inc=../../../../../../../../../../../../../../../../../../../../../../../../../etc/passwd%0000 HTTP/1.1" 404 654 "-" "Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050609 Firefox/1.0.4" ![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 [Unix/Linux File System and Pathnames (ROOT, absolute, relative, dot, dot dot]: 160_pathnames.html [Directories: ROOT, /root, HOME, /home, and current]: 170_home_and_HOME.html [Finding Help in Manual Pages - RTFM]: 140_man_page_RTFM.html [Searching for and finding files by name, size, use, modify time, etc.]: 180_finding_files.html [List of Commands]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Lab Worksheet #02 HTML]: worksheet02.html [Course Linux Server]: 010_course_linux_server.html [Rap Video]: 000_rap.html [Good news for job hunters in Android, Linux, and open source]: http://www.pcworld.com/article/2011376/good-news-for-job-hunters-in-android-linux-and-open-source.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week03notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/