Index of net2003/05w/notes
The scripts and programs in this directory have had a ".txt" suffix added, to
make sure that they are treated as text when your browser downloads them.
You usually need to remove the ".txt" suffix to compile them.
Jump down to:
* Weekly Class Notes
* Important Notes (alphabetical order)
* Labs/Assignments/Exercises
* Shell Scripts
* C and C++ Programs
* Course Outline / pdf,doc,wpd
* Tests and Exams (with Answers)
* Optional Material
* Important Notes (chronological order)
Weekly Class Notes
Jan 12 11:23 2005 week01notes.txt Week 1 Notes for NET2003
Jan 19 03:45 2005 week02notes.txt Week 2 Notes for NET2003
Jan 26 02:49 2005 week03notes.txt Week 3 Notes for NET2003
Jan 31 05:27 2005 week04notes.txt Week 4 Notes for NET2003
Feb 9 10:17 2005 week05notes.txt Week 5 Notes for NET2003
Feb 16 09:46 2005 week06notes.txt Week 6 Notes for NET2003
Mar 22 20:52 2005 week07notes.txt Week 7 Notes for NET2003
Mar 10 07:10 2005 week08notes.txt Week 8 Notes for NET2003
Mar 13 05:55 2005 week09notes.txt Week 9 Notes for NET2003
Mar 23 02:00 2005 week10notes.txt Week 10 Notes for NET2003
Mar 24 07:06 2005 week11notes.txt Week 11 Notes for NET2003
Apr 6 09:59 2005 week12notes.txt Week 12 Notes for NET2003
Important Notes (alphabetical order)
Feb 14 13:48 2005 CGI_script.txt Building a CGI Script on Unix
Jan 4 13:22 2005 README.txt README - Index to this NET2003 directory
Jan 4 17:50 2005 arguments_and_options.txt Options and Arguments on Unix Command Lines
Jan 11 14:57 2005 caddy.txt Drive caddy jumper issues - /dev/hda /dev/hdb
Mar 31 10:13 2005 chkconfig.txt The chkconfig command and SysV start-up scripts
Jan 30 09:15 2005 collate_order.txt Collate order - making GLOB patterns and sorting work
Jan 29 05:58 2005 command_substitution.txt Command Substitution - $(unix command)
Jan 4 16:42 2005 course_linux_server.txt The Course Linux Server
Jan 4 16:29 2005 datsubmit.txt Using the datsubmit command
Jan 29 05:06 2005 deep_nesting.txt Avoiding deeply nested IF statements (Structured/Un-Structured)
Jan 17 04:04 2005 exit_status.txt Return Code, Exit Status, test, if, and while
Jan 23 15:11 2005 file_system.txt Unix/Linux File System - (correct explanation)
Jan 4 17:07 2005 file_transfer.txt File transfer between machines
Apr 17 09:55 2005 finaltest3directions.txt Directions and preparing for Test #3 (Final Exam) [First DRAFT]
Jan 23 16:58 2005 finding_files.txt Searching for and finding files by name
Jan 20 02:10 2005 glob_patterns.txt GLOB patterns (wildcard pathname matching)
Jan 4 17:18 2005 home_and_HOME.txt Directories: current, HOME, and /home
Jan 4 17:35 2005 how_to_print.txt How to print things in NET2003
Feb 16 09:59 2005 http_session.txt sample HTTP session using the "nc" command
Jan 4 16:06 2005 internet_basics.html Internet Basics
Jan 25 21:56 2005 job_control.txt Shell background/foreground job control
Feb 2 08:43 2005 knoppix_booting.txt Using the Knoppix Linux CDROM
Jan 29 05:35 2005 less_code.txt Less Code is Better Code - stop cutting and pasting identical code
Jan 10 02:45 2005 links_and_inodes.html Hard links and Unix file system nodes (inodes)
Jan 26 02:10 2005 man_page_RTFM.txt Searching for items in the Unix manual pages (RTFM)
Mar 24 06:00 2005 mandrake_config.txt Mandrakelinux Configuration - making the server useful using urpmi
Mar 15 00:00 2005 mandrake_install.txt Mandrakelinux Install - fdisk partitioning, booting GRUB, etc.
Mar 15 06:02 2005 mandrake_network.txt Mandrakelinux Network Repair - if your Mini system has no networking
Jan 23 19:38 2005 miscellaneous.txt Miscellaneous Unix Facts
Apr 6 09:36 2005 mobile.txt Linux configuration on a removable disk
Feb 16 09:45 2005 nntp_session.txt sample NNTP session using the "nc" command
Jan 5 10:18 2005 pathnames.txt Unix/Linux Pathnames
Jan 10 03:02 2005 permissions.txt Unix Permissions
Jan 17 05:12 2005 practiceCommands_1.txt Practice Unix/Linux Questions #1
Mar 4 01:52 2005 practiceCommands_2.txt Practice Unix/Linux Questions #2
Mar 2 09:13 2005 practiceCommands_3.txt Practice Unix/Linux Questions #3
Feb 7 04:34 2005 quick_tests.txt Return Code, Exit Status, ||, &&, test, and if
Jan 17 03:25 2005 quotes.txt Unix/Linux Shell Command Line Quoting
Jan 20 02:25 2005 redirection.txt Unix Shell I/O Redirection (including Pipes)
Feb 7 00:22 2005 script_checklist.txt Shell Script Checklist - a list of things to verify in your shell scripts
Mar 2 08:45 2005 script_practice1.txt Practice Script #1 Specifications
Mar 2 08:48 2005 script_practice2.txt Practice Script #2 Specifications
Mar 2 09:33 2005 script_practice2answer.txt Two sample solutions to script_practice2.txt
Mar 4 01:10 2005 script_practice3.txt Practice Script #3 Specifications
Mar 4 01:15 2005 script_practice3answer.txt Script Practice #3 answer - 71 marks
Mar 4 01:10 2005 script_practice4.txt Practice Script #4 Specifications
Mar 4 01:15 2005 script_practice4answer.txt Script Practice #4 answer - 69 marks
Feb 27 07:05 2005 script_style.txt Shell Script Programming Conventions and Style
Mar 16 00:00 2005 server_admin.txt Linux Server Administration - reboot/shutdown, backups
Jan 4 17:41 2005 shell_prompt.txt Setting the BASH shell prompt
Feb 15 13:19 2005 shell_read.txt Reading stdin into shell variables - read, EOF, and exec
Jan 26 09:42 2005 shell_script_execution.txt How a Shell Script is "Executed"
Jan 25 22:01 2005 shell_variables.txt Shell Variables you should know (including $* and $@)
Feb 16 09:30 2005 smtp_session.txt sample SMTP session using the "nc" command
Jan 4 18:10 2005 startup_files.txt Setting up Startup Files: .bash_profile and .bashrc
Mar 16 16:35 2005 t111_server.txt T111/114/115 Server Available
Jan 7 06:34 2005 terminal.txt Using telnet/ssh Terminal emulators
Jan 30 15:36 2005 umask.txt Umask and Permissions
Feb 28 07:14 2005 unix_command_list.txt Basic Unix/Linux Command List
Jan 23 14:47 2005 unix_shell.txt The Unix/Linux Shell
Jan 4 17:43 2005 vi_basics.txt The VI (VIM) Editor - Basics
Labs/Assignments/Exercises
Jan 10 04:26 2005 exercise01.txt Exercise #1 for NET2003 due January 10, 2005
Jan 17 09:00 2005 exercise02.txt Exercise #2 for NET2003 due January 17, 2005
Jan 24 09:16 2005 exercise03.txt Exercise #3 for NET2003 due January 24, 2005
Feb 7 04:18 2005 exercise03_myscript.sh.txt Exercise #3 myscript.sh sample solution
Jan 26 04:48 2005 exercise03_myscript.txt Exercise #3 sample output from myscript.sh
Jan 31 06:34 2005 exercise04.txt Exercise #4 for NET2003 due February 3, 2005
Apr 7 13:05 2005 exercise04_myscript4.sh.txt Demonstrate data manipulation using Unix pipes
Apr 7 13:36 2005 exercise04_weather.sh.txt Fetch the current Ottawa temperature from the Enviro Canada web site.
Feb 7 05:02 2005 exercise05.txt Exercise #5 for NET2003 due February 15, 2005
Apr 10 12:05 2005 exercise05_weather5.sh.txt fetch via WWW the current temperature for a select set of Canadian cities
Feb 14 06:38 2005 exercise06.txt Exercise #6 for NET2003 due February 28, 2005
Apr 21 16:13 2005 exercise06_date_cgi.txt This CGI script displays the date and one passed argument.
Apr 21 16:17 2005 exercise06_weather6a_cgi.txt This CGI script displays the Ottawa weather temperature.
Apr 21 16:28 2005 exercise06_weather6b_cgi.txt This CGI script displays the temperature for a given city code
Feb 28 07:11 2005 exercise07.txt Exercise #7 for NET2003 due March 1, 2005
May 1 21:16 2005 exercise07_partitions.sh.txt Output a list of partitions and types for a given disk letter
Apr 22 16:13 2005 exercise07_week7answers.txt assignment label here
Mar 4 04:32 2005 exercise08.txt Exercise #8 for NET2003 due March 7, 2005
Mar 13 21:15 2005 exercise09.txt Exercise #9 for NET2003 due March 14-21, 2005
Mar 13 21:50 2005 exercise10.txt Exercise #10 for NET2003 due March 21, 2005
Mar 21 02:38 2005 exercise11.txt Exercise #11 for NET2003 due March 21, 2005
Apr 22 16:37 2005 exercise11_week10answers.txt assignment label here
Mar 24 10:02 2005 exercise12.txt Exercise #12 for NET2003 due March 28/30, 2005
Apr 5 17:26 2005 exercise13.txt Exercise #13 for NET2003 due April 4/8, 2005
Apr 22 17:25 2005 exercise13_week12answers.txt assignment label here
Shell Scripts
Jan 30 20:35 2005 argv.sh.txt This shell script displays the command line arguments.
Feb 7 04:18 2005 commandline_arguments.sh.txt demonstrate the use of command line arguments in a script
Feb 7 04:18 2005 elif.sh.txt Show the equivalence of nested IF statements and ELIF
Feb 7 04:18 2005 file_size_classer.sh.txt Classify a file as small, medium, large.
Feb 7 04:14 2005 iftest1.sh.txt Compare two files in an IF statement, checking the return status of DIFF.
Feb 7 04:14 2005 iftest2.sh.txt Demonstrate the TEST command in an IF statement (numeric test).
Feb 7 04:14 2005 iftest3.sh.txt Demonstrate the TEST command in an IF statement (string tests).
Feb 7 04:14 2005 iftest4.sh.txt File-testing operations by the TEST command in an IF statement.
Feb 7 04:14 2005 iftest6.sh.txt If the script has one argument, tell whether it is exists and is readable.
Feb 7 04:14 2005 iftest7.sh.txt Count the number of lines in the first file name argument.
Feb 7 04:14 2005 iftest8.sh.txt A "backup" script - Structured Programming Version (one entry / one exit).
Feb 7 04:14 2005 iftest9.sh.txt A "backup" script - Non-Structured Programming Version (many exits).
Feb 7 04:18 2005 integer_sort.sh.txt read three integers and sort them
Feb 7 04:18 2005 optional_args1.sh.txt Demonstrate method 1 for prompting for missing command line arguments.
Feb 7 04:18 2005 optional_args2.sh.txt Demonstrate method 2 for prompting for missing command line arguments.
Feb 7 04:18 2005 optional_args3.sh.txt Display PWD MAIL HOME replaced by optional command line arguments.
Feb 7 04:18 2005 passwd_string_finder.sh.txt look for an optional string in the Unix password file
Feb 7 04:18 2005 path_tester.sh.txt Perform several tests on the first argument to this script.
Feb 7 04:18 2005 path_validator.sh.txt Validate a single command line argument (file or directory).
Mar 2 08:45 2005 script_practice1.sh.txt Sample solution to script_practice1.txt
Feb 7 04:18 2005 shellread.sh.txt demonstrate the use of the shell "read" built-in command
Feb 7 04:14 2005 showtest.sh.txt Demonstrate the many uses of the built-in TEST command.
Feb 7 04:18 2005 sort_top_five.sh.txt This scripts sorts a file and displays the top 5 lines.
Feb 7 04:18 2005 string_compare.sh.txt This script compares two strings: an argument and stdin.
Feb 7 04:18 2005 wait_login.sh.txt wait until userid signs on, then print a message and exit.
Feb 7 04:18 2005 weather1.sh.txt A weather script to show the current temperature in Ottawa
Feb 7 04:18 2005 weather2.sh.txt A weather script to show the current temperature in Ottawa.
Feb 17 18:56 2005 while1.sh.txt Demonstrate a "while" loop, "read", "exec", and "let"
Feb 7 04:18 2005 while2.sh.txt Demonstrate a "while" loop
C and C++ Programs
Jan 17 03:25 2005 argv.c++.txt Display the arguments on the command line.
Jan 17 03:25 2005 argv.c.txt Display the arguments on the command line.
Jan 17 03:25 2005 stdxxx.c++.txt Produces output on stdout and stderr, prompts and reads from stdin.
Course Outline / pdf,doc,wpd
Jan 24 16:25 2005 net2003-05w.pdf
Apr 6 03:04 2005 text_errata.txt Errors in Advanced Linux Networking by Roderick W. Smith
Tests and Exams (with Answers)
Mar 10 11:24 2005 termtest2marksanalysis.txt Question Selection for Multiple Choice Test #2
Mar 9 18:19 2005 termtest2shellanswer.txt Test #2 sample answer - Script Part II - 88 marks - 13 of 25%
Mar 9 18:17 2005 termtest2multiplechoice.txt Test #2 Multiple Choice
Mar 9 18:17 2005 termtest2multiplechoice.pdf
Mar 9 18:17 2005 termtest2multiplechoice.ps
Mar 9 10:50 2005 termtest2shell.txt Test #2 Shell Programming
Mar 9 10:50 2005 termtest2shell.pdf
Mar 9 10:50 2005 termtest2shell.ps
Mar 4 04:22 2005 practiceTest2.txt Practice Test #2 Questions
Mar 4 04:22 2005 practiceTest2.pdf
Mar 4 04:22 2005 practiceTest2.ps
Mar 4 01:56 2005 termtest2directions.txt Directions and preparing for Test #2
Jan 26 16:04 2005 termtest1marksanalysis.txt Question Selection for Multiple Choice Test #1
Jan 26 15:53 2005 termtest1multiplechoice.pdf
Jan 26 15:53 2005 termtest1multiplechoice.txt Test #1 Multiple Choice
Jan 26 15:53 2005 termtest1multiplechoice.ps
Jan 23 18:53 2005 termtest1directions.txt Directions and preparing for Test #1
Jan 20 01:52 2005 practiceTest1.pdf
Jan 19 03:06 2005 practiceTest1.txt Practice Test #1 Questions
Jan 19 03:06 2005 practiceTest1.ps
Optional Material
Jan 4 16:25 2005 opt_why_shell.txt Why Learn to program the Unix Shells?
Jan 4 16:24 2005 opt_opensource.txt The Open Source Movement
Jan 4 16:08 2005 opt_mainframe_linux.txt IBM System/390: The Linux Dream Machine
Important Notes (chronological order)
Apr 17 09:55 2005 finaltest3directions.txt Directions and preparing for Test #3 (Final Exam) [First DRAFT]
Apr 6 09:36 2005 mobile.txt Linux configuration on a removable disk
Mar 31 10:13 2005 chkconfig.txt The chkconfig command and SysV start-up scripts
Mar 24 06:00 2005 mandrake_config.txt Mandrakelinux Configuration - making the server useful using urpmi
Mar 16 16:35 2005 t111_server.txt T111/114/115 Server Available
Mar 16 00:00 2005 server_admin.txt Linux Server Administration - reboot/shutdown, backups
Mar 15 06:02 2005 mandrake_network.txt Mandrakelinux Network Repair - if your Mini system has no networking
Mar 15 00:00 2005 mandrake_install.txt Mandrakelinux Install - fdisk partitioning, booting GRUB, etc.
Mar 4 01:52 2005 practiceCommands_2.txt Practice Unix/Linux Questions #2
Mar 4 01:15 2005 script_practice4answer.txt Script Practice #4 answer - 69 marks
Mar 4 01:15 2005 script_practice3answer.txt Script Practice #3 answer - 71 marks
Mar 4 01:10 2005 script_practice3.txt Practice Script #3 Specifications
Mar 4 01:10 2005 script_practice4.txt Practice Script #4 Specifications
Mar 2 09:33 2005 script_practice2answer.txt Two sample solutions to script_practice2.txt
Mar 2 09:13 2005 practiceCommands_3.txt Practice Unix/Linux Questions #3
Mar 2 08:48 2005 script_practice2.txt Practice Script #2 Specifications
Mar 2 08:45 2005 script_practice1.txt Practice Script #1 Specifications
Feb 28 07:14 2005 unix_command_list.txt Basic Unix/Linux Command List
Feb 27 07:05 2005 script_style.txt Shell Script Programming Conventions and Style
Feb 16 09:59 2005 http_session.txt sample HTTP session using the "nc" command
Feb 16 09:45 2005 nntp_session.txt sample NNTP session using the "nc" command
Feb 16 09:30 2005 smtp_session.txt sample SMTP session using the "nc" command
Feb 15 13:19 2005 shell_read.txt Reading stdin into shell variables - read, EOF, and exec
Feb 14 13:48 2005 CGI_script.txt Building a CGI Script on Unix
Feb 7 04:34 2005 quick_tests.txt Return Code, Exit Status, ||, &&, test, and if
Feb 7 00:22 2005 script_checklist.txt Shell Script Checklist - a list of things to verify in your shell scripts
Feb 2 08:43 2005 knoppix_booting.txt Using the Knoppix Linux CDROM
Jan 30 15:36 2005 umask.txt Umask and Permissions
Jan 30 09:15 2005 collate_order.txt Collate order - making GLOB patterns and sorting work
Jan 29 05:58 2005 command_substitution.txt Command Substitution - $(unix command)
Jan 29 05:35 2005 less_code.txt Less Code is Better Code - stop cutting and pasting identical code
Jan 29 05:06 2005 deep_nesting.txt Avoiding deeply nested IF statements (Structured/Un-Structured)
Jan 26 09:42 2005 shell_script_execution.txt How a Shell Script is "Executed"
Jan 26 02:10 2005 man_page_RTFM.txt Searching for items in the Unix manual pages (RTFM)
Jan 25 22:01 2005 shell_variables.txt Shell Variables you should know (including $* and $@)
Jan 25 21:56 2005 job_control.txt Shell background/foreground job control
Jan 23 19:38 2005 miscellaneous.txt Miscellaneous Unix Facts
Jan 23 16:58 2005 finding_files.txt Searching for and finding files by name
Jan 23 15:11 2005 file_system.txt Unix/Linux File System - (correct explanation)
Jan 23 14:47 2005 unix_shell.txt The Unix/Linux Shell
Jan 20 02:25 2005 redirection.txt Unix Shell I/O Redirection (including Pipes)
Jan 20 02:10 2005 glob_patterns.txt GLOB patterns (wildcard pathname matching)
Jan 17 05:12 2005 practiceCommands_1.txt Practice Unix/Linux Questions #1
Jan 17 04:04 2005 exit_status.txt Return Code, Exit Status, test, if, and while
Jan 17 03:25 2005 quotes.txt Unix/Linux Shell Command Line Quoting
Jan 11 14:57 2005 caddy.txt Drive caddy jumper issues - /dev/hda /dev/hdb
Jan 10 03:02 2005 permissions.txt Unix Permissions
Jan 10 02:45 2005 links_and_inodes.html Hard links and Unix file system nodes (inodes)
Jan 7 06:34 2005 terminal.txt Using telnet/ssh Terminal emulators
Jan 5 10:18 2005 pathnames.txt Unix/Linux Pathnames
Jan 4 18:10 2005 startup_files.txt Setting up Startup Files: .bash_profile and .bashrc
Jan 4 17:50 2005 arguments_and_options.txt Options and Arguments on Unix Command Lines
Jan 4 17:43 2005 vi_basics.txt The VI (VIM) Editor - Basics
Jan 4 17:41 2005 shell_prompt.txt Setting the BASH shell prompt
Jan 4 17:35 2005 how_to_print.txt How to print things in NET2003
Jan 4 17:18 2005 home_and_HOME.txt Directories: current, HOME, and /home
Jan 4 17:07 2005 file_transfer.txt File transfer between machines
Jan 4 16:42 2005 course_linux_server.txt The Course Linux Server
Jan 4 16:29 2005 datsubmit.txt Using the datsubmit command
Jan 4 16:06 2005 internet_basics.html Internet Basics
Jan 4 13:22 2005 README.txt README - Index to this NET2003 directory